So, if the configured storage size is 100 GB and you have 500 GB of NZBs queued, this script will ensure that only up to 100 GB of NZBs are running at any given time in any state (downloading, PP, script, etc). The remaining 400 GB will be paused. As NZBs fully complete paused downloads will be resumed in priority order as long as they do not cause the storage size to be exceeded.
- Queue-Script: Pauses all newly-added NZBs.
- Scheduler-Script: Resumes NZBs (in priority order) until the sum of the size of resumed NZBs reaches the configured storage size limit.
The Scheduler component has a default task time (*) which runs at startup. It will continue to run forever using the configured SchedulerRefreshInterval (default 15 seconds) to guide how often the queue is checked for NZBs to resume.
This can be combined with StickyDownloadQueue to keep the download order within the set of NZBs that are unpaused consistent but is not strictly necessary - this script more or less solves the same issue but also solves others by simply managing the entire queue.
Note that any NZBs larger than the configured StorageSize will never be downloaded and will remain paused forever. This can be good or bad if your storage wouldn't have been large enough anyway but currently it will not be deleted by this script.
- NZBGet 18.0+
- Python 2 or 3 accessible from NZBGet
- No other scripts that intentionally pause / unpause NZBs. This script pauses ALL newly-added NZBs. It will resume any of them that it decides can be downloaded next.
Enable script under Extension Scripts > Extensions and reload.
The Scheduler portion of the script is automatically enabled to run on startup. No Task needs to be created under the Scheduler web page. To verify that it started and is running, you may check for this message on startup:
Code: Select all
CappedDownloadQueue: Starting scheduler script - will continue to run
Download / Source
GitHub: https://github.com/Hidendra/nzbget-capp ... e/releases