Transmission-Cleanup is a repo with some short scripts written in Python, that removes completed torrents and those with an error re-adding them again, from a running instance of Transmission (more info at http://www.transmissionbt.com/).
Well, I had two main reasons why I've created this repository:
- I have a server with openmediavault installed and a transmission daemon running on. When the transmission finishes to download the torrents he doesn't remove those torrents from the queue. This is why I wrote the script
removedownloaded.py
. The second scriptfixtransmission.py
is a fork from nickcova/transmission-cleanup with some bugs fixed - It’s been a while since I’ve written something in Python, so I felt like practicing a little bit.
In order to use these scripts you need:
- A working Linux distro.
- transmission-daemon should be installed, configured and running.
In order to run these scripts you can choose one from the options bellow:
- crontab:
echo "30 * * * * root python \
readlink -f removedownloaded.py`" >> /etc/crontab`echo "0 * * * * root python \
readlink -f fixtransmission.py`" >> /etc/crontab`
- command line:
python removedownloaded.py
python fixtransmission.py