FileBot, -get-missing-subtitles, and --lang

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
norrellmeister
Posts: 3
Joined: 28 Jan 2014, 00:14

FileBot, -get-missing-subtitles, and --lang

Post by norrellmeister »

I'm using FileBot to run the AMC script in response to downloads from Deluge. It works pretty well, but recently I made an addition to automatically download subtitles for newly added videos. I added -get-missing-subtitles and --lang en and --lang ru (since I want to get both Russian and English subtitles for every video where they don't already exist). It looks like the subtitles search is working, but it had an unintended side effect: It seems to have changed the DB that FileBot is matching the file against! Now instead of "Girls" I get "Devotchki", which is the Russian version of that word. Is there a way I can grab multiple language subs while not changing the actual DB used for metadata / renaming / identification?
User avatar
rednoah
The Source
Posts: 22995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot, -get-missing-subtitles, and --lang

Post by rednoah »

You're using the FileBot CLI options which affect all aspects and functions.

Check the AMC docs for the AMC specific options:
--def subtitles=en,de,fr Download subtitles for the given languages
:idea: Please read the FAQ and How to Request Help.
norrellmeister
Posts: 3
Joined: 28 Jan 2014, 00:14

Re: FileBot, -get-missing-subtitles, and --lang

Post by norrellmeister »

Ah, perfect. Do I need to use -get-missing-subtitles at all, then? Also, does that AMC option download regardless of the subtitles present? If possible, I'd like to grab only "missing" subtitles.
User avatar
rednoah
The Source
Posts: 22995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot, -get-missing-subtitles, and --lang

Post by rednoah »

No, when using AMC you don't need to use the normal options. It'll always use getMissingSubtitles() with output forced to .srt and encoding forced to UTF-8
:idea: Please read the FAQ and How to Request Help.
norrellmeister
Posts: 3
Joined: 28 Jan 2014, 00:14

Re: FileBot, -get-missing-subtitles, and --lang

Post by norrellmeister »

Works for me. Thanks for your quick help!
Post Reply