Running FileBot from the console, Groovy scripting, shell scripts, etc
-
geekmaster1
- Posts: 10
- Joined: 24 Mar 2016, 08:43
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
-
rednoah
- The Source
- Posts: 24495
- Joined: 16 Nov 2011, 08:59
- Location: Taipei
-
Contact:
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

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=}"

This is a configuration line.