mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-10 21:38:04 -05:00
Support for searching for Hebrew subtitles
https://www.filebot.net/forums/viewtopic.php?f=6&t=4898
This commit is contained in:
parent
82f34a0043
commit
6145508272
@ -245,7 +245,13 @@ public final class FileUtilities {
|
|||||||
detector.setText(in);
|
detector.setText(in);
|
||||||
CharsetMatch match = detector.detect();
|
CharsetMatch match = detector.detect();
|
||||||
if (match != null) {
|
if (match != null) {
|
||||||
return match.getReader();
|
Reader reader = match.getReader();
|
||||||
|
if (reader != null) {
|
||||||
|
return reader;
|
||||||
|
}
|
||||||
|
|
||||||
|
// reader may be null if detected character encoding is not supported
|
||||||
|
debug.warning("Unsupported charset: " + match.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -457,7 +457,8 @@ public class OpenSubtitlesClient implements SubtitleProvider, VideoHashSubtitleS
|
|||||||
});
|
});
|
||||||
|
|
||||||
// some additional special handling
|
// some additional special handling
|
||||||
subLanguageMap.put("pb", "pob");
|
subLanguageMap.put("iw", "heb"); // Hebrew
|
||||||
|
subLanguageMap.put("pb", "pob"); // Brazilian Portuguese
|
||||||
subLanguageMap.put("zh", "chi"); // Chinese (Simplified)
|
subLanguageMap.put("zh", "chi"); // Chinese (Simplified)
|
||||||
subLanguageMap.put("tw", "zht"); // Chinese (Traditional)
|
subLanguageMap.put("tw", "zht"); // Chinese (Traditional)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user