Automove slow torrent to the end of the download queue #23546
+437
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#23476
How to Enable
Options → BitTorrent → "Move slow downloading torrents to queue end"
Configure:
Functionality Added
Files Changed
Backend (Core Logic)
Desktop GUI
Web UI
Web API
API Changes
Web API Preferences Endpoints
slow_torrent_detection_enabled(boolean): Enable/disable the featureslow_torrent_detection_duration(integer): Monitoring window in minutesslow_torrent_minimum_progress(integer): Minimum progress in MiBslow_torrent_excluded_tag(string): Tag name to exclude from detection (optional)Backward Compatibility
Perhaps my code wasn’t quite “maintainer material” 🌱—no worries! It’s been a solid month since the PR, so I’ve rolled my own little sh script (curl + jq, webapi-based) for personal use.
I trimmed a few bits for my own needs (no new features—the PR remains the “full edition”), but it’s easy to tweak if anyone’s interested. Both the PR and this script have clocked 100+ hours on Windows/Linux without a hiccup (that my humble skills could spot, anyway).
Script below
Run:
/path/to/.sh &