amc and subtitles
Posted: 02 Dec 2015, 15:48
Hi!
I have a script:
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?...
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
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?...