Package: autoremove-torrents
This program can help you to remove your torrents. Now you don’t need to worry about your disk space - according to your strategies, the program will check each torrent if it satisfies the remove condition; If so, delete it automatically.This program supports qBittorrent/Transmission/μTorrent. If you like, star it :star2: :)Documentation:https://autoremove-torrents.readthedocs.io/en/latest/Readme version in other languages:简体中文.RequirementsPython 2.7 or Python 3We recommend you to use Python 3.6 or higher version of Python.Quick StartInstallationInstall from pippip install autoremove-torrentsorInstall from GitHubgit clone https://github.com/jerrymakesjelly/autoremove-torrents.git
cd autoremove-torrents
python3 setup.py installWrite your configuration fileIn order to satisfactory your needs, you have to learn how to write a configuration file.You can put the configuration file anywhere on your disk. The autoremove-torrents looks forconfig.ymlin the Shell’s current working directory:vim ./config.ymlThe grammar is quite easy, for example:my_task:
  client: qbittorrent
  host: http://127.0.0.1
  username: admin
  password: adminadmin
  strategies:
    my_strategy:
      categories: IPT
      remove: seeding_time > 1209600 or ratio > 1
  delete_data: trueThe program will delete those torrents whose categories areIPT, seeding time is above 1209600 secondsorratio is greater than 1. Read thedocumentsto learn more.Runautoremove-torrentsIf you just want to see which torrents can be removed but don’t want to really remove them, use--viewcommand line argument.Setting up scheduled tasksIf you want to check whether there is any torrent can be removed every 15 minutes, the crontab can help you. Look at the example:crontab -eAnd then, add a line at the end of the file (please confirm the path of the autoremove-torrents and your program):*/15 * * * * /usr/bin/autoremove-torrents --conf=/home/jerrymakesjelly/autoremove-torrents/config.yml --log=/home/jerrymakesjelly/autoremove-torrents/logsThe--confindicates the path to the configuration file.
The--logargument specifies the path to store the log files (Must be existed).ScreenshotChangelogSun, 19 June 2022: Version 1.5.4.ChangesRemove outgoing port status info. (#101) (#135)We have confirmed a bug, which is, the outgoing port status checker will fail and report ‘portTested: http error 400: Bad Request’ when we are using Transmission and check the outgoing port status in IPv6 network.Since there are no configurations relying on this status, we remove it.Changelast_activity’s behaviour. (#93) (#98) (#109)It won’t remove those torrents that have never been active anymore.These torrents that have never been active can be removed by the following configuration:last_activity: neverorlast_activity: noneforlast_activitycondition.last_activity = neverorlast_activity = noneforremoveexpression.FeaturesAddremove-slow-upload-seedsandremove-fast-upload-seedsin actions. (#127) Thanks to @vincent906!Support equality (=) comparison in remove expression.Add downloading time condition. (#88) Thanks to @dantebarba!FixFix a bug that Downloaded/Uploaded Size conditions andfree_space/remote_free_spacecannot handle decimals correctly. (#133) Thanks to @sfwn!Fix a bug thatlast_activitycondition doesn’t work in Deluge 2.0.3 and above. (#119)More changelogsTODO ListDepend on users’ feedback. If you have any problem, please submitissues.Click hereto see the TODO List.