Page 2 of 2
Re: [Hire Request] Rtorrent + Filebot/AMC
Posted: 15 May 2014, 14:22
by Joon
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

Re: [Hire Request] Rtorrent + Filebot/AMC
Posted: 15 May 2014, 14:52
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" &
Re: [Hire Request] Rtorrent + Filebot/AMC
Posted: 15 May 2014, 15:09
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 ?
Re: [Hire Request] Rtorrent + Filebot/AMC
Posted: 15 May 2014, 15:23
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.
Re: [Hire Request] Rtorrent + Filebot/AMC
Posted: 15 May 2014, 16:10
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 ?

Re: [Hire Request] Rtorrent + Filebot/AMC
Posted: 15 May 2014, 17:10
by rednoah
No idea, you'd have to ask the rtorrent people.

I'd put it into rtorrent-postprocess cause I understand how bash scripts work, but I don't understand how rtorrent configs work.
