Export Deluge torrents to rTorrent
Deluge (v1 especially) isn't known for being the best optimized client out there, especially when you start to add a lot of torrents to your client. Thus, it can be beneficial to move torrents which have finished racing in Deluge over to rTorrent to seed in a client that is better optimized for resource usage. If only there were some way to trigger this automatically...
Enter the Deluge to rTorrent script!
Install the Dependencies#
First off, this method requires rtxmlrpc from the pyrocore tools suite, so let's go ahead and grab that now!
Perl requires a dependency for rtorrent-fastresume so let's grab that too:
Please be aware that the tests run by the build of this module can randomly fail. You can probably safely ignore this.
The setup will probably ask a few prompts:
Make sure you choose local::lib -- you don't have sudo permissions!
Now ensure all the changes we just made are loaded in your path and current session:
Create the pyrocore config to prevent errors being thrown at you:
Setup the Scripts Responsible for the Work#
If it does not exist, create the ~/bin folder and change to the directory:
Grab the supporting scripts and set execute permissions:
As a swizzin customer, you should not need to alter anything in either script.
Add the Script to Execute#
Now in Deluge, you'll need to enable the execute plugin and add ~/bin/d2r.sh as an execute script on torrent completion. If this is your first time enabling the excute plugin, don't forget to restart deluge! (box restart deluged)
By default, the script is set to wait for 900 seconds (15 minutes) before moving your files. You are welcome to change this value at the top of the script.