Unrar script

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

Unrar script

Postby Scouzer » Wed Jan 08, 2014 9:39 am

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: 342
Joined: Sat Jul 31, 2010 5:04 pm

Re: Unrar script

Postby killemov » Wed Jan 08, 2014 3:15 pm

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

Postby Scouzer » Fri Jan 10, 2014 8:19 am

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

Postby Scouzer » Fri Jan 10, 2014 9:46 am

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",


Return to “Requests”