Page 1 of 1

amc and subtitles

Posted: 02 Dec 2015, 15:48
by Tyrel
Hi!

I have a script:

Code: Select all

filebot.launcher.exe -script fn:amc --output "e:/Root/_FileBot_Staging" --log-file amc.log --action copy --conflict override -non-strict --def music=n subtitles=en artwork=n exludeList=amc.txt --def "ignore=iso|exe|nfo" %1
which copies my finished downloads to another drive, also renaming them and putting them in their appropriate folders (e.g.: SeriesTitle/Season)... and it is also supposed to download subtitles for them.
However this subtitle downloading part started failing a few weeks ago and now it rarely (if ever) works. I have no idea why, haven't changed anything.

Since I can't figure out what's wrong with it, I'd create a workaround instead, by adding this command to a .bat file, then adding a timeout to it (e.g.: 60 seconds to let fn:amc work), then running a filebot -get-subtitles command.

However, -get-subtitles obviously needs the target file to get the subtitles for. Problem is that this file has just been created by fn:amc and I also cannot work with arbitrary filenames made of the target path and %~n1, because I don't know the additional folders it puts inbetween. (e.g.: I know: e:/Root/_FileBot_Staging/???/filename).

So is there a way to get the full path of the file that fn:amc just created, then use that path for the next command?
Or is there any other solution to make it actually download the subtitles as well?...

Re: Created file info returned? Need help!

Posted: 02 Dec 2015, 16:06
by rednoah
The amc script will only fetch subtitles in strict mode. If you want to check for missing subtitles in non-strict mode or in regular intervals then I recommend using the suball script.

e.g.

Code: Select all

filebot -script fn:amc --output /volume1/data/Media ...
filebot -script fn:suball /volume1/data/Media -non-strict --def maxAgeDays=7 ...

Re: amc and subtitles

Posted: 02 Dec 2015, 18:24
by Tyrel
Hmm, thanks!

Doesn't exactly answer the question, but is quite an useful workaround nevertheless. :)