Changelog
This is a maintenance release of the public 1.x line: fixes only, with no new settings. Nightly (sponsor) builds are newer than this release and already carry these fixes; if you run a nightly, stay on it and do not switch to this build.
A slow download is no longer deleted as stalled
A download over its time budget is deleted only when its progress has also stopped for stalled_download_mins. The old rule needed about 16.7 MB/s end to end and deleted healthy downloads, including ones zurg did not add.
A Real-Debrid listing that is empty, short or missing its count no longer empties the library
A torrents page without X-Total-Count is refused, and so is a listing shorter than the account's count unless Real-Debrid confirms each missing torrent deleted. An account that lists nothing while the library holds releases is believed only after 30 seconds and two more empty listings. fetch_torrents_page_size above 5000 is read as 5000, the most Real-Debrid honours.
A 451 on an add is waited out instead of retiring the release
Real-Debrid answers 451 infringing_file both for a name it refuses and for a short block on the whole account. zurg now retries after 30, 90 and 300 seconds, holds its other adds meanwhile, spaces adds 20 seconds apart, and marks a release "infringing torrent" only when its name carries a pattern Real-Debrid refuses. Releases marked that way by earlier versions with no such name become repairable again, once each.
A throttle, a blocked IP or a rejected token no longer marks files broken
Rate limits (5, 34, 429), bad_token (8), permission_denied (9), ip_not_allowed (22), traffic_exhausted (23) and fair_usage_limit (36) are answers about the account. Streaming, STRM links, repair, link assignment and media analysis no longer mark a file broken or a torrent unrepairable on them; from a datacenter IP every torrent used to be retired as "torrent not allowed". A retry wait ends when its caller goes away, and fair-usage retries are bounded.
A repair pass stops at the first re-add Real-Debrid refuses for the account's own reasons
The remaining repair strategies are left for the next pass, and the release gets no "repair failed" mark from it.
An add cut off after it was sent is not sent again
Only an add that never reached Real-Debrid (connection refused, host not resolved) is resent, so a broken connection no longer adds a torrent up to four times.
config.yml is saved whole and a new one is owner-only
Saving from the dashboard writes a temporary file and renames it, so nothing reads a half-written config. A config zurg creates is mode 0600; an existing file keeps its mode. A config written or saved by zurg running as root (Docker) stays owned by the host user.
Version: v1.0.1
Commit: 685bbc18afb23b93b5a0758c4ba264265962e8b7
Support Debrid Media Manager, zurg and other projects' development by becoming a sponsor:
- Patreon: https://www.patreon.com/debridmediamanager
- GitHub Sponsors: https://github.com/sponsors/debridmediamanager
- PayPal: https://paypal.me/yowmamasita