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
Unrar script
Re: Unrar script
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.
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.
Re: Unrar script
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.
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.
Re: Unrar script
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",
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",