Lookup by hash failed: SubLanguageID for 'chinese' not found

Any questions? Need some help?
Post Reply
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Lookup by hash failed: SubLanguageID for 'chinese' not found

Post by Meph88 »

Hey rednoah,

First let me say filebot is amazing and although I use it through CLI I brought it in the app store and have convinced friends and family to do the same.

I'm having some trouble getting subtitles on a mac and would really appreciate your help.

Getting English subtitles is super easy, I use a line like "filebot -get-missing-subtitles --lang en -r /Volumes/Media" and it works great.

I also need to get Chinese subtitles. I use the same line with the language code "ch" and it works but I get no results and no subtitles are downloaded, just a lot of "no matching subtitles found".

Am I doing something wrong?

Can you help?
User avatar
rednoah
The Source
Posts: 23031
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Chinese Subtitles

Post by rednoah »

1.
How many different files have you tried?

2.
Could it be that there are no matching subtitles for the one particular file you have tried?

3.
How did you confirm that there are in fact matching subtitles for the file you have tried?
:idea: Please read the FAQ and How to Request Help.
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Re: Chinese Subtitles

Post by Meph88 »

1. Thousands of files

2. For some but not for all of them

3. For some files I have manually searched at opensubtitles.org and have been able to find chinese subtitles.
User avatar
rednoah
The Source
Posts: 23031
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Chinese Subtitles

Post by rednoah »

You're using strict mode, so it'll look up subtitles by file hash / tag only:
http://www.filebot.net/forums/viewtopic.php?f=3&t=2615

If you want FileBot to also do search by name, then you need to enable Lookup by Name by specifying -non-strict.
:idea: Please read the FAQ and How to Request Help.
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Re: Subtitle search in strict mode doesn't yield any results

Post by Meph88 »

I've made the recommended change to non strict mode as you suggested.
I still get no subtitles.
I see this when executing the command:

"filebot -get-missing-subtitles -non-strict --lang zh -r /Users/MacMini/Documents/Torrent\ Stuff/New\ Torrents"

Get [Chinese] subtitles for 180 files
Looking up subtitles by hash via OpenSubtitles
Lookup by hash failed: SubLanguageID for 'chinese' not found
Looking up subtitles by name via OpenSubtitles
Search by name failed: SubLanguageID for 'chinese' not found
No matching subtitles found: "Path/to/file"
User avatar
rednoah
The Source
Posts: 23031
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Subtitle search in strict mode doesn't yield any results

Post by rednoah »

Well, that seems like an important bit of output that should really have been in the original post...

Code: Select all

Lookup by hash failed: SubLanguageID for 'chinese' not found
I'll have a look when I have time.
:idea: Please read the FAQ and How to Request Help.
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Re: Lookup by hash failed: SubLanguageID for 'chinese' not f

Post by Meph88 »

Hey,
Sorry I missed that info in the original post.
Any luck on this one?
I'm still having this problem and unable to get and Chinese subtitles.
User avatar
rednoah
The Source
Posts: 23031
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Lookup by hash failed: SubLanguageID for 'chinese' not f

Post by rednoah »

Logs?


My logs say it works:

Code: Select all

$ filebot -get-subtitles . --lang zho -non-strict

Code: Select all

Get [Chinese] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Looking up subtitles by name via OpenSubtitles
Fetching [Chinese] subtitles [Avatar.2009.1080p.x264.DTS.2AUDIO-WAF.Chs.srt] from [OpenSubtitles]
Writing [Avatar.2009.1080p.x264.DTS.2AUDIO-WAF.Chs.srt] to [Avatar.zho.srt]
:idea: Please read the FAQ and How to Request Help.
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Re: Lookup by hash failed: SubLanguageID for 'chinese' not f

Post by Meph88 »

I've just updated from Filebot 4.5 to 4.7 and tried running

Code: Select all

filebot -get-missing-subtitles —lang zho -r -non-strict /Volumes/Media/New
I get the output

Code: Select all

"-get-missing-subtitles" is not a valid option
Is there a new version that performs the same function?
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Re: Lookup by hash failed: SubLanguageID for 'chinese' not f

Post by Meph88 »

I found this: viewtopic.php?f=4&t=5#p8871

That gave me some info about how to search for subtitles from the command line. I tried it out like this:

filebot -script fn:suball /Path/to/Media -non-strict --lang zho --def maxAgeDays=30

This outputs:

Code: Select all

Fetch subtitles for [/Path/to/Media]
Get [Chinese] subtitles for 1 files
OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
net.filebot.cli.CmdlineException: OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
	at net.filebot.cli.CmdlineOperations.requireLogin(CmdlineOperations.java:742)
	at net.filebot.cli.CmdlineOperations.getSubtitles(CmdlineOperations.java:699)
	at net.filebot.cli.CmdlineOperations.getMissingSubtitles(CmdlineOperations.java:799)
	at net.filebot.cli.ScriptShellBaseClass.getMissingSubtitles(ScriptShellBaseClass.java:366)
	at Script1$_run_closure11.doCall(Script1.groovy:74)
	at Script1.run(Script1.groovy:72)
	at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
	at net.filebot.Main.main(Main.java:120)
Done ヾ(@⌒ー⌒@)
Does this indicate that I must have an account with opensubtitles?

What can I do here?
User avatar
rednoah
The Source
Posts: 23031
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Lookup by hash failed: SubLanguageID for 'chinese' not f

Post by rednoah »

1.
It's just -get-subtitles now. It'll only fetch missing subtitles by default now. In most cases, using the suball script is probably best.


2.
OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Yes, an OpenSubtitles account is required now, and has been for quite a while.

@see viewtopic.php?f=3&t=228
:idea: Please read the FAQ and How to Request Help.
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Re: Lookup by hash failed: SubLanguageID for 'chinese' not f

Post by Meph88 »

Any way to do two languages in the same line?

Also, can you force it? I ask because I just encountered a file and got this output:

Video file already contains embedded subtitles
Done ヾ(@⌒ー⌒@)ノ

It did have subtitle files but they were deleted....
User avatar
rednoah
The Source
Posts: 23031
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Lookup by hash failed: SubLanguageID for 'chinese' not f

Post by rednoah »

1.
Just make two calls, one for each language.


2.
Video file already contains embedded subtitles
Embedded subtitles are subtitles that are embedded in the container (e.g. subtitle streams in mkv or mp4 containers). Containers that already contain subtitles are ignored by default. The ignoreTextLanguage option controls this behaviour.
:idea: Please read the FAQ and How to Request Help.
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Re: Lookup by hash failed: SubLanguageID for 'chinese' not f

Post by Meph88 »

Two calls is no problem.

I'm having trouble getting the ignoreTextLanguage option to work.

I'm using:

filebot -script fn:suball /Volumes/Media/SubTest/Star\ Trek\ Into\ Darkness\ \(2013\) -non-strict "ignoreTextLanguage=en" --lang en --def maxAgeDays=30

But still getting:

Ignore [Star Trek Into Darkness (2013).mkv]: Video file already contains embedded subtitles
Done ヾ(@⌒ー⌒@)ノ

I'm so appreciative of all the help you've provided me by the way and your app is properly awesome so I'm definitely throwing a bit of donation love your way.
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Re: Lookup by hash failed: SubLanguageID for 'chinese' not f

Post by Meph88 »

Donation submitted.

BTW, I'm having a bit of an issue with the subtitle files that are being downloaded.
English ones are fine but the ones labeled as Chinese (zho) that are being obtained with:

filebot -script fn:suball /Volumes/Media/SubTest/ -non-strict "ignoreTextLanguage=zh" --lang zho --def maxAgeDays=30

are sometimes not Chinese, I have two movies so far confirmed that the subtitles were downloaded and when you watch the movie one appeared to be Spanish and the other was in an arabic text. Definitely not Chinese anyway.
User avatar
rednoah
The Source
Posts: 23031
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Lookup by hash failed: SubLanguageID for 'chinese' not f

Post by rednoah »

Logs? Also, there's generally nothing FileBot can do if people upload bad subtitles. You could go to OpenSubtitles and flag/report the bad subtitles.


PS: your command-line is wrong


YES

Code: Select all

--def ignoreTextLanguage=zh
NO

Code: Select all

ignoreTextLanguage=zh
:idea: Please read the FAQ and How to Request Help.
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Re: Lookup by hash failed: SubLanguageID for 'chinese' not f

Post by Meph88 »

OK, I'll report bad subs.

Is this better?

filebot -script fn:suball /Volumes/Media/SubTest/ -non-strict --lang zho --def ignoreTextLanguage=zh maxAgeDays=30
Post Reply