qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
26.16k stars 3.84k forks source link

Cleanup scheduler. Deleting inactive torrents. Example: Delete torrent if it's last activity was more than X time #18474

Open Zauxst opened 1 year ago

Zauxst commented 1 year ago

Suggestion

Implement an option that allows us to delete torrent + files / pause / stop torrent based primarily around "Last Activity" and maybe other conditions if required is more than specified values.

It would also be good to have a column that tracks how long a torrent has been seeding, queued, stalled, downloading etc to help around the "Last Activity" marker.

This can open the case of proper Cleanup scheduler around qbittorrent.

Use case

Extra info/examples/attachments

sorry for the pseudo code, found it easiest to express it...

For example, delete torrents that have been inactive for more than 2 days and seed is over 2.00.

IF ((LastActivity > 2d) and (Ration < 3.01)) or ((Seedtime >= 365d) and (LastActivity > 30d)) then
   DELETE()

Or example. Delete torrents that are just inactive for more than 10 days

IF (LastActivity > 10d) then
    DELETE()
stalkerok commented 1 year ago

For Windows, showing Last Activity needs to be fixed first. https://github.com/qbittorrent/qBittorrent/issues/13150

Zauxst commented 1 year ago

For Windows, showing Last Activity needs to be fixed first. #13150

In my request I strictly think of Last Activity, but truth be told any of the stats can be used to do advanced cleanup options.

Example:

IF (Ration >=3) AND (Seeders <=2)

Advanced cleanup schedulers are needed and to be controlled directly in the torrent client.

redham2124 commented 1 year ago

When you manually delete something, there is a pop up confirmation window that lets you select "Also delete the files on the hard disk". Do any of these scripts scrub all associated files with the torrent? TY