xbenjii / torrentexpander

Automatically exported from code.google.com/p/torrentexpander
0 stars 0 forks source link

In destructive_mode, pause and delete Transmission torrents automatically #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The syntax is :
/usr/local/bin/transmission-remote localhost:PORT -n LOGIN:PASSWORD 
-t$TR_TORRENT_ID -S & 

Original issue reported on code.google.com by addicted...@gmail.com on 24 Jul 2011 at 2:10

GoogleCodeExporter commented 8 years ago
Part 1 : Transmission

First we'll need to add these variables to the settings.ini file
torrent_client=transmission
transmission_login=
transmission_password=
transmission_port=

If torrent_client=transmission

We'll issue this command to know the ID  of the torrent

torrent_id=$(/usr/local/bin/transmission-remote localhost:"$transmission_port" 
-n "$transmission_login":"$transmission_password" -l | grep "$TR_TORRENT_NAME" 
| sed "s;^ \([0-9]*\)   .*;\1;")

We'll then pause then remove torrent and data

/usr/local/bin/transmission-remote localhost:"$transmission_port" -n 
"$transmission_login":"$transmission_password" -t "$torrent_id" -S > /dev/null 
2>&1 && /usr/local/bin/transmission-remote localhost:"$transmission_port" -n 
"$transmission_login":"$transmission_password" -t "$torrent_id" 
--remove-and-delete > /dev/null 2>&1

Original comment by addicted...@gmail.com on 1 Jan 2012 at 12:16

GoogleCodeExporter commented 8 years ago
Added in stable-5 CSI

# In destructive mode, torrents are deleted also from client torrent list. 
# These are client data, you may add login informations.
torrent_daemon_bin="/share/Apps/Transmission/bin/transmission-daemon"
torrent_daemon_login=""
torrent_daemon_password=""
torrent_daemon_port="9091"

Are correct?

Original comment by login...@gmail.com on 5 Jan 2012 at 12:16

GoogleCodeExporter commented 8 years ago
Perfectly correct

Great job !

Original comment by addicted...@gmail.com on 5 Jan 2012 at 7:28

GoogleCodeExporter commented 8 years ago

Original comment by login...@gmail.com on 6 Jan 2012 at 12:20