Get Missing Subtitles --q Argument

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
shenlong55
Posts: 2
Joined: 14 Jun 2015, 00:14

Get Missing Subtitles --q Argument

Post by shenlong55 »

I'm having trouble finding information on using the CLI to search for subtitles by name. My batch file works fine if it it finds it by hash. But if it fails to find it by hash I get an error.

"Search by name failed: java.lang.String cannot be cast to java.util.List"

This is what the filebot portion of my script looks like with the variables all filled in...

start "" /B /wait "c:\Program Files\FileBot\filebot.exe" -get-missing-subtitles "C:\Users\Shenlong\Documents\Downloads\complete\shows\Marvels Agent Carter S01E08 720p WEB-DL DD5 1 H 264-Coo7" --q "Marvels Agent Carter S01E08 720p WEB-DL DD5 1 H 264-Coo7" --lang en --output srt --encoding utf8 -non-strict

If I remove the quotes from the portion after --q then it doesn't give me an error anymore, but it also doesn't find anything. I'm really just trying to find out how the --q argument is supposed to work. It seems like I should be able to pass a string as movie/show titles often have spaces in them, so I wouldn't want to search for each word of a title individually.

If anyone could point out what I'm doing wrong here I would greatly appreciate it.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Get Missing Subtitles --q Argument

Post by rednoah »

You can only force the movie / series name with the --q option.

e.g.

Code: Select all

--q "Marvels Agent Carter"

Code: Select all

--q "Jurassic Park (1993)"

For -get-missing-subtitles calls the --q option is rather useless. You shouldn't ever need it really...
:idea: Please read the FAQ and How to Request Help.
shenlong55
Posts: 2
Joined: 14 Jun 2015, 00:14

Re: Get Missing Subtitles --q Argument

Post by shenlong55 »

Ah, I see. I thought --q was necessary to search by name. I guess it just uses the file name to search by name without the --q argument then?

Thanks for the help!
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Get Missing Subtitles --q Argument

Post by rednoah »

Yes. It'll always default to "Search By Name" if "Search By Hash" doesn't yield any results and will auto-detect all the required information from the filename and metadata itself.
:idea: Please read the FAQ and How to Request Help.
Post Reply