Transmission: Unrar and cleanup script.

Transmission: Unrar and cleanup script.

Postby babadagi » Fri Nov 11, 2011 6:41 pm

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..
babadagi
 
Posts: 19
Joined: Tue Jul 05, 2011 10:13 am
Location: IZMIR/TURKIYE

Re: Transmission: Unrar and cleanup script.

Postby wd9895 » Sat Nov 12, 2011 9:02 am

... 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 ?
wd9895
Donator Supporter
Donator Supporter
 
Posts: 255
Joined: Fri Jun 10, 2011 1:49 pm
Location: Hamburg, Germany

Re: Transmission: Unrar and cleanup script.

Postby babadagi » Sat Nov 12, 2011 12:22 pm

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)
babadagi
 
Posts: 19
Joined: Tue Jul 05, 2011 10:13 am
Location: IZMIR/TURKIYE

Re: Transmission: Unrar and cleanup script.

Postby wd9895 » Sun Nov 13, 2011 7:55 am

Ah ok, now got it. Nice idea.

Did you get your transmission running ?

I stepped back to 2.22.
wd9895
Donator Supporter
Donator Supporter
 
Posts: 255
Joined: Fri Jun 10, 2011 1:49 pm
Location: Hamburg, Germany

Re: Transmission: Unrar and cleanup script.

Postby babadagi » Sun Nov 13, 2011 12:57 pm

yes, i'm using 2.22, and fvdw-sl firmware version 9-0.
babadagi
 
Posts: 19
Joined: Tue Jul 05, 2011 10:13 am
Location: IZMIR/TURKIYE


Return to Philips SPD8020

Who is online

Users browsing this forum: No registered users and 4 guests

cron