How to queue torrents in Transmission
I have been using Transmission bit torrent client for quite some time. Its powerful, runs in the background, is processor friendly ( maximum that i have seen it use is 5% that too on a P4 1.7GHz system with more than 75 torrents).
But what I find it lacking is its ability to queue torrents. Still at version
1.83 1.92 (which is what I am using currently) and no queuing … .Only the Mac version supports queuing.
So in search of the holy grail I landed up at this Transmission discussion forum thread and found this queue script.
Even though the script worked well, I found that the script had some short comings.
I had added a bunch of torrents to seed them, when I found that the script (scheduled to run at an interval of 5 minutes) stopped the newly added torrents which were being verified or were scheduled to be verified before seeding.
A little poking into the script and I saw that the script stops all those torrents (if it is greater than the number that has been specified in the MAXDOWN parameter) which don’t report a status of Stopped.
Since newly added torrents for seeding only report a status of Verifying or Will Verify for currently being hashed or scheduled for being hashed respectively, hence the script was stopping those torrents also.
I went ahead and added those two parameter to the script and voila… the torrents that i added for seeding, got verified aka hashed completely and went into seeding state and the next it queue continued.
Script Source : The updated script can be found at github: sevensins / Transmission-daemon-torrent-queue.
Replace the following variables :
- USERNAME : The default username for transmission-remote is transmission
- PASSWORD : The default password for transmission-remote is transmission
- MAXDOWN : This is the maximum number of torrents that you would like to have in queue for downloading
- MAXACTIVE : This is the maximum number of active torrents in your list.
Save the script to a suitable location and use cron to schedule it to run every 5 minutes or whatever time you deem suitable and enjoy your Transmission.
As pointed out by Bogdan please replace awk with gawk if you plan to use this on Ubunut 9.10 x64 server since there is complain with strtonum.