Transmission - move download when finished
Hi there, my intentions were to move finished download (once when finished and seeding) to new location. My programming skills are kind of limited :)) but I've tried (with googling and using part of other script) and I've prepared small script if anyone is interested. It took me 15 minutes and it is sufficient for me for now.
If you can advise on some improvements, deficiencies or other way to do it I am willing to learn something.
Works with Transmission 1.61
LIMITATIONS:
1) This will work only for one completed torrent with status Seeding for each execution. TODO: Repeat it until all torrents are moved-should be easy.
2) If torrent is seeded again from new location it might be a big problem :eek: TODO: Fix it, but I have no idea how to.
SETTINGS:
I've set up this to stop and move data to different location (I can start seeding manually or delete torrent afterward). This can be adjusted by options in the last line.
USE:
cron (repeat every x minutes/hour/daily)
Code:
#!/bin/sh
# The absolute path to and including the transmission-remote binary
TRANSREMOTE=/opt/bin/transmission-remote
# The absolute path to where you want your completed torrents moved to
DESTDIR=/mnt/data/_downloads
# Find the first completed torrent
TORRENTID=`$TRANSREMOTE -l | sed -n '/Seeding/{p;q;}'|sed -e 's/...%.*//'|sed 's/^[ \t]*//;s/[ \t]*$//'`
if [ -z $TORRENTID ]; then
echo "Nothing is finished!"
exit
fi
# Stop the torrent and move data to the new location
$TRANSREMOTE -t $TORRENTID -S --move $DESTDIR
Error 501 when connecting to Transmission Remote
I am able to connect to the web interface using http://192.168.1.1:8008/cgi-bin/transmission.cgi but trying to connect through Transmission Remote I get an error saying "The remote server returned an error: (501) Not Implemented.
My settings in Transmission Remote are:
Host: 192.168.1.1
Port: 8008
I just upgraded to transmission 1.71 and using transmission-remote-dotnet 3.9
Can anyone help? I have looked everywhere to resolve this problem and dying to use Transmission Remote ratehr than the web interface.
Buddy