Only download force priority items when paused (#2679)

* Fix when downloader paused only download force priority items

* Remove resolved issue
This commit is contained in:
Michael Nightingale
2023-09-18 10:17:52 +01:00
committed by GitHub
parent 8e2972edae
commit 4d324de343
2 changed files with 3 additions and 4 deletions

View File

@@ -48,6 +48,3 @@
You can make SABnzbd wait for a mount of the "temporary download folder" by setting
Config->Special->wait_for_dfolder to 1.
SABnzbd will appear to hang until the drive is mounted.
- If the queue is paused but one or more jobs have the Force priority, SABnzbd might still
download some data from other jobs in the queue if active servers have unused connections.

View File

@@ -719,7 +719,9 @@ class NzbQueue:
propagation_delay = float(cfg.propagation_delay() * 60)
for nzo in self.__nzo_list:
# Not when queue paused and not a forced item
if nzo.status not in (Status.PAUSED, Status.GRABBING) or nzo.priority == FORCE_PRIORITY:
if (
nzo.status not in (Status.PAUSED, Status.GRABBING) and not sabnzbd.Downloader.paused
) or nzo.priority == FORCE_PRIORITY:
# Check if past propagation delay, or forced
if (
not propagation_delay