Page 1 of 1
Lookup by hash failed: SubLanguageID for 'chinese' not found
Posted: 30 Apr 2016, 12:55
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?
Re: Chinese Subtitles
Posted: 30 Apr 2016, 14:03
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?
Re: Chinese Subtitles
Posted: 30 Apr 2016, 21:31
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.
Re: Chinese Subtitles
Posted: 01 May 2016, 05:53
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.
Re: Subtitle search in strict mode doesn't yield any results
Posted: 01 May 2016, 06:34
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"
Re: Subtitle search in strict mode doesn't yield any results
Posted: 01 May 2016, 06:44
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.
Re: Lookup by hash failed: SubLanguageID for 'chinese' not f
Posted: 01 Jul 2016, 11:18
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.
Re: Lookup by hash failed: SubLanguageID for 'chinese' not f
Posted: 01 Jul 2016, 15:18
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]
Re: Lookup by hash failed: SubLanguageID for 'chinese' not f
Posted: 02 Jul 2016, 14:56
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?
Re: Lookup by hash failed: SubLanguageID for 'chinese' not f
Posted: 02 Jul 2016, 15:36
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?
Re: Lookup by hash failed: SubLanguageID for 'chinese' not f
Posted: 02 Jul 2016, 15:54
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
Re: Lookup by hash failed: SubLanguageID for 'chinese' not f
Posted: 02 Jul 2016, 16:57
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....
Re: Lookup by hash failed: SubLanguageID for 'chinese' not f
Posted: 02 Jul 2016, 17:07
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.
Re: Lookup by hash failed: SubLanguageID for 'chinese' not f
Posted: 02 Jul 2016, 23:11
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.
Re: Lookup by hash failed: SubLanguageID for 'chinese' not f
Posted: 02 Jul 2016, 23:46
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.
Re: Lookup by hash failed: SubLanguageID for 'chinese' not f
Posted: 03 Jul 2016, 03:47
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
NO
Re: Lookup by hash failed: SubLanguageID for 'chinese' not f
Posted: 03 Jul 2016, 03:55
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