this post was submitted on 17 Sep 2026
24 points (100.0% liked)

Rust Programming

9409 readers
1 users here now

founded 7 years ago
MODERATORS
 

From the README:

Pausing popular torrents isn't something that qBittorrent handles well. This library uses 2 criteria to pause / stop torrents.

They are stopped if they are:

  • Popular (IE have a lot of total seeds), and
  • You've given back more than what you've taken (IE a seed ratio > 1)

Requirements

  • Rust
  • A qBittorrent server.
  • An API key generated through the web UI.
  • A crontab where this script can be periodically run.

Usage

This will pause torrents with a ratio >= 2, and more than 10 total seeds.

cargo run -- \
--api-key API_KEY \
--endpoint ENDPOINT \
--ratio 2 \
--total-seeds 10
you are viewing a single comment's thread
view the rest of the comments
[–] dessalines@lemmy.ml 3 points 1 month ago

For sure. I've done it manually for years up until now, when I realized they make really easy to use libraries for rust.

I've done the share ratio only filter like you, but I realized that some torrents are heavily leeched, yet stay unpopular. IE my share ratio was > 100, yet I was still the only seeder. So this library makes sure that they're also popular before pausing them.