diff options
author | zx900930 <[email protected]> | 2021-02-15 01:39:57 +0100 |
---|---|---|
committer | zx900930 <[email protected]> | 2021-02-15 01:39:57 +0100 |
commit | 46e709c9986f4fa1ae57499141f575bef2dfdddf (patch) | |
tree | 52d085ac479c83ecb546b79e1f0a6492417190d1 /libs/subliminal_patch | |
parent | cf0cc5df1da3f7854a2a161a792f56b261566fe8 (diff) | |
download | bazarr-46e709c9986f4fa1ae57499141f575bef2dfdddf.tar.gz bazarr-46e709c9986f4fa1ae57499141f575bef2dfdddf.zip |
improve chinese language codes matching rules
Diffstat (limited to 'libs/subliminal_patch')
-rw-r--r-- | libs/subliminal_patch/core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/subliminal_patch/core.py b/libs/subliminal_patch/core.py index 76e11402a..07cd6ad91 100644 --- a/libs/subliminal_patch/core.py +++ b/libs/subliminal_patch/core.py @@ -637,8 +637,8 @@ def _search_external_subtitles(path, languages=None, only_one=False, scandir_gen hi = any(i for i in hi_tag if i in adv_tag) #add simplified/traditional chinese detection - simplified_chinese = ["chs", "sc", "zhs", "hans", "gb", u"简", u"双语"] - traditional_chinese = ["cht", "tc", "zht", "hant", "big5", u"繁", u"雙語"] + simplified_chinese = ["chs", "sc", "zhs", "hans","zh-hans", "gb", "简", "简中", "简体", "简体中文", "中英双语", "中日双语","中法双语"] + traditional_chinese = ["cht", "tc", "zht", "hant","zh-hant", "big5", "繁", "繁中", "繁体", "繁體","繁体中文", "繁體中文", "正體中文", "中英雙語", "中日雙語","中法雙語"] FULL_LANGUAGE_LIST.extend(simplified_chinese) FULL_LANGUAGE_LIST.extend(traditional_chinese) p_root = p_root.replace('zh-TW', 'zht') |