Page 1 of 1

Transmission: Unrar and cleanup script.

PostPosted: Fri Nov 11, 2011 6:41 pm
by babadagi
1: Stop Transmission daemon

2: modify settings.json

find script-torrent-done-enabled and modify value true
and write script name:

"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/share/1000/tr-daemon/unrar.sh",

3: Create unrar.sh

/share/1000/tr-daemon/unrar.sh

#!/bin/sh
#
DEST_DIR="${TR_TORRENT_DIR}/${TR_TORRENT_NAME}/"
cd $DEST_DIR
/opt/bin/unrar e "$DEST_DIR/*.rar" >> extract.log

transmission-remote -n admin:tr1234 -t$TR_TORRENT_ID --remove-and-delete
#this line remove torrent quene list and delete data files from source directory, if you don't then remove this line.
#modify user name and password, if you are change default values..
#and need to pay attention to this line, if unrar fails, all downloaded data is deleted. All responsibility is yours.

4: Start transmission daemon

works perfect.. download, extract, delete source files.. ready for watch..

Re: Transmission: Unrar and cleanup script.

PostPosted: Sat Nov 12, 2011 9:02 am
by wd9895
... sorry for asking a most likely stupid question: waht is the purpose of this ?
I'm happy that I can barely use Putty. I have no clue about Linux.

So what do you want us to tell ?

Re: Transmission: Unrar and cleanup script.

PostPosted: Sat Nov 12, 2011 12:22 pm
by babadagi
The purpose of it: everything is ready..

my device is download movie/episode all the day. When finish the download, this script extract the movie or episode. You sit back and watch at the evening. This is purpose, this is automation.

otherwise;

device download movie..
you extract the movie, delete source files, delete transmission quene list..
(and wait extract time, if downloaded couple episodes, multiply waiting time)

Re: Transmission: Unrar and cleanup script.

PostPosted: Sun Nov 13, 2011 7:55 am
by wd9895
Ah ok, now got it. Nice idea.

Did you get your transmission running ?

I stepped back to 2.22.

Re: Transmission: Unrar and cleanup script.

PostPosted: Sun Nov 13, 2011 12:57 pm
by babadagi
yes, i'm using 2.22, and fvdw-sl firmware version 9-0.