This script in it's simplest form acts as a cleanup for your old torrents. It copies all of your torrents that have finished seeding to an archive directory and then removes the torrents and the old files.
Not so hidden in this script is a super useful TransmissionRequestWrapper class that can be used for all sorts of other cool transmission scripts. It's the closest thing to an API I am willing to write... at the moment.
- Put the file somewhere safe
- Edit the destination for old torrents and set rpc username and password as needed
- Make sure it is executable
- Set the following in transmission's settings.json (usually /etc/transmission-daemon/settings.json) while transmission-daemon is not running.
- set script-torrent-done-enabled: True
- script-torrent-done-filename: "Path/to/script"
- Restart Transmission
If you are having problems configuring transmission see https://trac.transmissionbt.com/wiki/EditConfigFiles
This script assumes a few things;
- it is running on the same box as transmission
- Set as script-torrent-done-filename OR cron it, it doesn't require any vars
- While it is hypothetically windows compatible it's untested
- Most importantly, you set Username, Password and Dest Directory
- No username & Password is put in as None not ""
- No third party libraries needed but 2.6+ recommended