Unrar script

Feature requests not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
Scouzer
Posts: 7
Joined: Wed Jan 08, 2014 9:32 am

Unrar script

Post by Scouzer »

I have read this thread about an unrar script

viewtopic.php?f=1&t=10364

But I would like be able to make work so that the unpacked files are placed in the same folder as the rar files.
I would also like that old rar files arent deleted.
Both thing is explained on page 8, but I am not sure I understand how to alter the script.
Can some one explain it to a newbee like me.

Edit:
I forgot to mention I use a Readynas ultra 2
killemov
Posts: 535
Joined: Sat Jul 31, 2010 5:04 pm

Re: Unrar script

Post by killemov »

The script should unrar the files in the relative torrent folder.

This line tells transmission to, well, remove the torrent and delete the files associated with it:
transmission-remote -n $TR_USERNAME:$TR_PASSWORD -t $TR_TORRENT_HASH --remove-and-delete

If you change --remove-and-delete to --remove, then only the torrent will be removed. Or put a # at the beginning of that line and it won't execute at all.

I don't know if you can run this script on a vanilla ReadyNAS Ultra 2 anyway. See the prerequisites in the first post of the aforementioned thread.

Cheers,

K.
Scouzer
Posts: 7
Joined: Wed Jan 08, 2014 9:32 am

Re: Unrar script

Post by Scouzer »

Thanks for your answer.
Unfortunately I can't start Transmission after I add this to the settings.json file

"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/var/lib/scripts/posttorrent.sh",

But if I delete it again, I can open transmission.
Scouzer
Posts: 7
Joined: Wed Jan 08, 2014 9:32 am

Re: Unrar script

Post by Scouzer »

I found out that the lines already was there.
So edited the lines to where the posttorrent.sh is places.
but it still doesn't work. At least I can't finde unpacked file.


"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/c/addons-config/Transmission/posttorrent.sh",
Post Reply