Page 1 of 1

uTorrent simple integration

Posted: 17 Jan 2013, 17:07
by wanxu
Hi! I just discovered that I could use filebot from command line and integrate with uTorrent. That's great! However, I just want to do one thing: download subtitles and name them the same way the original file (without ".eng").

I already automatically structure my files from uTorrent, so I just want to download the subtitles to them and remove the ".eng" sufix from the filename so the TV player gets the subtitle. How would it be the script? I don't fully understand the example (Fully Automated Media Center). I tried but I don't want it to create a folder "TV shows/TV Show/Season/Chapter". Just let the file where it is and the subtitle with the same filename.
Would something like this work?

Code: Select all

filebot -script fn:utorrent-postprocess -non-strict --def subtitles=y "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S"
To set the subtitle the same name as the file I tried and it works:

Code: Select all

filebot -script fn:replace "FOLDER" --def "e=.eng" "r="
but it would be 2 functions. I don't know if I can execute two in one call (in utorrent) or as a parameter for utorrent-postprocess. I tried to add

Code: Select all

--def "e=.eng" "r="
at the end of the function but it doesn't work.

Thank you!

Re: uTorrent simple integration

Posted: 17 Jan 2013, 23:43
by rednoah
You can just && commands in utorrent just as in console.

eg
filebot -script fn:utorrent-postprocess ... && filebot -script fn:replace ...

Re: uTorrent simple integration

Posted: 18 Jan 2013, 10:06
by wanxu
Thanks! I'll try it!