amc and subtitles

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Tyrel
Posts: 3
Joined: 25 Feb 2015, 21:50

amc and subtitles

Post 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?...
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Created file info returned? Need help!

Post 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 ...
:idea: Please read the FAQ and How to Request Help.
Tyrel
Posts: 3
Joined: 25 Feb 2015, 21:50

Re: amc and subtitles

Post by Tyrel »

Hmm, thanks!

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