I did some searching for a way to sort my downloaded torrents into folders based by tracker.
Did not find any way to do that (please inform me if there is another way to do this..)
So I myself a ugly hackish little bash script.. but hey it works for me.. it should work for you to
I have only tried it with single tracker torrents.
Just change user and pass in the script and enable it in settings.json
Thanks to killemov for his nice rar and cleanup script
I did got the idea how to do it from his script.
Code: Select all
#!/bin/bash
# move_torrent.sh by rZn
# Username for transmission remote.
TR_USERNAME="user"
# Password for transmission remote.
TR_PASSWORD="pass"
TRACKER=$(transmission-remote -n $TR_USERNAME:$TR_PASSWORD -t$TR_TORRENT_ID -it | sed -n -e '/[:]/p' | awk '{print substr($0, index($0,$3))}' | cut -b8- | cut -d":" -f1)
mkdir -p ${TR_TORRENT_DIR}/${TRACKER}
transmission-remote -n $TR_USERNAME:$TR_PASSWORD -t$TR_TORRENT_ID --move ${TR_TORRENT_DIR}/${TRACKER}
//rZn