Search by name failed: SubLanguageID for 'Chinese' not found

Any questions? Need some help?
Post Reply
Harroguk
Posts: 8
Joined: 13 Jan 2015, 06:33

Search by name failed: SubLanguageID for 'Chinese' not found

Post by Harroguk »

Input:

Code: Select all

filebot.cmd -script fn:suball "G:\Archive" -non-strict --output srt --lang zho
Output:

Code: Select all

Fetch subtitles for [G:\Archive]
Get [Chinese] subtitles for 1 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: G:\Archive\Marvel.One.Shot.item.47.bluray.720p.mkv
Done ?(?????)?
Does "SubLanguageID for 'Chinese' not found" simply mean that it has not found any subtitles for this item?
When I look up this filename on opensubtitles.org http://www.opensubtitles.org/en/search/ ... vie-134942
I find multiple chinses subtitles.

Output of filebot.cmd -script fn:sysinfo:

Code: Select all

FileBot 4.5.3 (r2729)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: java.io.IOException: Cannot run program "C:\InstalledPrograms\filebot\fpcalc.exe": CreateProcess error=2, The system cannot find the file specified
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Runtime Environment 1.8.0_25
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 2 Core / 3 GB Max Memory / 68 MB Used Memory
OS: Windows Server 2008 R2 (amd64)
Done ?(?????)?
User avatar
rednoah
The Source
Posts: 23946
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Search by name failed: SubLanguageID for 'Chinese' not f

Post by rednoah »

Looks like the code is broken for this one. Fixed with r2797.
:idea: Please read the FAQ and How to Request Help.
Harroguk
Posts: 8
Joined: 13 Jan 2015, 06:33

Re: Search by name failed: SubLanguageID for 'Chinese' not f

Post by Harroguk »

I think something funky is still going on...

Input:

Code: Select all

filebot.cmd -script fn:suball "E:\Current\22 Jump Street (2014)" --def ignoreTextLanguage=chinese -non-strict --output srt --lang zho
Output:

Code: Select all

Fetch subtitles for [E:\Current\22 Jump Street (2014)]
Get [Chinese] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Looking up subtitles by name via OpenSubtitles
No matching subtitles found: E:\Current\22 Jump Street (2014)\22 Jump Street (2014).mkv
Done ?(?????)?
Obviously according to http://www.opensubtitles.org/en/search/ ... vie-124289 there are multiple Chinese Subs available, yet none are being found/downloaded.

This is the same story for every search run with the lang set to ZHO or ZH or CHI
User avatar
rednoah
The Source
Posts: 23946
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Search by name failed: SubLanguageID for 'Chinese' not f

Post by rednoah »

Looks like I messed up the SublanguageID mapping for "Chinese" so I've fixed that and it's now set to "chi,zht,zhe" now. Seems to be working here similar to what's shown on the website. Fixed with r2800.
:idea: Please read the FAQ and How to Request Help.
Harroguk
Posts: 8
Joined: 13 Jan 2015, 06:33

Re: Search by name failed: SubLanguageID for 'Chinese' not f

Post by Harroguk »

I think that we are almost there with this one.

Files are now downloading and they contain Chinese subtitles.

however the rename portion operates as follows

Writing [22.Jump.Street.2014.BluRay.eng.srt] to [22 Jump Street (2014).eng.srt]
Writing [22.Jump.Street.2014.BluRay.cht.srt] to [22 Jump Street (2014).Chinesesimplified.srt]

As you can see the English subtitles append the ISO 639-2 Language Code "eng" to identify the subtitles where as the Chinese ones have appended "Chinesesimplified" This means that my media center cannot identify their language as it is expecting the ISO 639-2 Language Code "CHI" or ISO 639-1 Language Code "ZH".

Thanks again for all your hard work on this.

Harroguk
User avatar
rednoah
The Source
Posts: 23946
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Search by name failed: SubLanguageID for 'Chinese' not f

Post by rednoah »

Have another try with r2804. Should normalize any kind of Chinese to zho language codes now.
:idea: Please read the FAQ and How to Request Help.
Post Reply