[Hire Request] Rtorrent + Filebot/AMC

Running FileBot from the console, Groovy scripting, shell scripts, etc
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

Re: [Hire Request] Rtorrent + Filebot/AMC

Post by Joon »

rednoah wrote:No idea how rtorrent processes the event.download.finished event.

Have tried doing command &?
http://www.cyberciti.biz/faq/linux-comm ... ackground/
I have not, thank you for pointing me in the right direction!

i changed the .rtorrrent.rc line to this:

Code: Select all

system.method.set_key=event.download.finished,filebot_amc,"execute={/usr/bin/rtorrent-postprocess,$d.get_base_path=,$d.get_name=,$d.get_custom1= &}"
rTorrent no longer seems to hang up when filebot processes anything so this is good news 8-)
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Hire Request] Rtorrent + Filebot/AMC

Post by rednoah »

I can't imagine that would work...

I was thinking this:

Code: Select all

filebot -script dev:amc --output "$HOME/downloads" --log-file "$HOME/amc.log" --action copy --conflict override -non-strict --def "clean=y" "ut_dir=$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" &
:idea: Please read the FAQ and How to Request Help.
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

Re: [Hire Request] Rtorrent + Filebot/AMC

Post by Joon »

rednoah wrote:I can't imagine that would work...

I was thinking this:

Code: Select all

filebot -script dev:amc --output "$HOME/downloads" --log-file "$HOME/amc.log" --action copy --conflict override -non-strict --def "clean=y" "ut_dir=$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" &
thats weird though.. because it does work

In what way should it not work? like at all or just pushing it to the background ?
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Hire Request] Rtorrent + Filebot/AMC

Post by rednoah »

I have no idea what command rtorrent executes. I would imagine something like "label=test &" passing it in literally.

Adding & is pretty much basic shell background jobs.
:idea: Please read the FAQ and How to Request Help.
Joon
Donor
Posts: 62
Joined: 05 Apr 2014, 14:13

Re: [Hire Request] Rtorrent + Filebot/AMC

Post by Joon »

ah okay, i just figured it would work because the value right above the one i copied in .rtorrent.rc is:

Code: Select all

execute = {sh, -c,/usr/bin/php/ /var/rutorrent/rutorrent/php/initplugins.php sbuser &}
Taking that into account i just added the '&' the way i did and it seems to work like expected.

so i tested it and it does not seem to pass it literally:

Code: Select all

Parameter: clean = y
Parameter: ut_dir = /home/sbuser/downloads/Seeding/Movie/3.Days.to.Kill.2014.EXTENDED.1080p.BluRay.x264-SPARKS
Parameter: ut_kind = multi
Parameter: ut_title = 3.Days.to.Kill.2014.EXTENDED.1080p.BluRay.x264-SPARKS
Parameter: ut_label = Movie
so which way is better, in the rtorrent.rc or in the postprocess script ? or does it really matter ? :D
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Hire Request] Rtorrent + Filebot/AMC

Post by rednoah »

No idea, you'd have to ask the rtorrent people. :D I'd put it into rtorrent-postprocess cause I understand how bash scripts work, but I don't understand how rtorrent configs work. :D
:idea: Please read the FAQ and How to Request Help.
Post Reply