Modifying rtorrent script

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
geekmaster1
Posts: 10
Joined: 24 Mar 2016, 08:43

Modifying rtorrent script

Post by geekmaster1 »

I've modified the rtorrent-postprocess.sh like this

Code: Select all

#!/bin/sh -xu

filebot -script fn:amc --output "/mnt/drive/media/tv" --action copy -non-strict "/home/user/download" --def skipExtract=n --def deleteAfterExtract=n --def excludeList=amc.txt --def extractFolder="/home/user/extracted" --def clean=y --def subtitles=en "seriesFormat=/mnt/drive/media/tv/{n} ({y}){'/Season '+s}/{s+'x'}{e.pad(2)} - {t}" "movieFormat=/mnt/drive/media/movies/{n} ({y})/{n} ({y})" --log-file="/home/user/amc-log.txt" &
[code]
[/code]

and added this to my rtorrent.rc

Code: Select all

echo 'system.method.set_key=event.download.finished,filebot,"execute={'`pwd`/rtorrent-postprocess.sh',$d.get_base_path=,$d.get_name=,$d.get_custom1=}"' >> ~/.rtorrent.rc
but it doesnt seem to be working
any help would be appreciated
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Modifying rtorrent script

Post by rednoah »

1.
Is your script ever called?

Please read this:
viewtopic.php?f=4&t=3067


2.
This is a command:

Code: Select all

echo 'system.method.set_key=event.download.finished,filebot,"execute={'`pwd`/rtorrent-postprocess.sh',$d.get_base_path=,$d.get_name=,$d.get_custom1=}"' >> ~/.rtorrent.rc
:idea: This is a shell command.

The command above, when executed, will add a line such as this to the ~/.rtorrent.rc file:

Code: Select all

system.method.set_key=event.download.finished,filebot,"execute={/home/me/rtorrent-postprocess.sh,$d.get_base_path=,$d.get_name=,$d.get_custom1=}"
:idea: This is a configuration line.
:idea: Please read the FAQ and How to Request Help.
geekmaster1
Posts: 10
Joined: 24 Mar 2016, 08:43

Re: Modifying rtorrent script

Post by geekmaster1 »

thank you
Post Reply