Skip to content

Commit

Permalink
Merge pull request #105 from ManiMatter/skip-slow-download-check-for-…
Browse files Browse the repository at this point in the history
…usenet

bugfix
  • Loading branch information
ManiMatter authored May 13, 2024
2 parents f9dc823 + 8841369 commit 5754d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobs/remove_slow.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async def remove_slow(settingsDict, BASE_URL, API_KEY, NAME, deleted_downloads,
if 'downloadId' in queueItem and 'size' in queueItem and 'sizeleft' in queueItem and 'status' in queueItem:
if queueItem['downloadId'] not in alreadyCheckedDownloadIDs:
alreadyCheckedDownloadIDs.append(queueItem['downloadId']) # One downloadId may occur in multiple queueItems - only check once for all of them per iteration
if queueItem['usenet']: # No need to check for speed for usenet, since there users pay for speed
if queueItem['protocol'] == 'usenet': # No need to check for speed for usenet, since there users pay for speed
continue
if queueItem['sizeleft'] == 0: # Skip items that are finished downloading but are still marked as downloading. May be the case when files are moving
logger.debug('remove_slow/skipping completed item marked as downloading: %s (Speed: %d KB/s, KB now: %s, KB previous: %s, Diff: %s, In Minutes: %s', \
Expand Down

0 comments on commit 5754d9a

Please sign in to comment.