mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-23 22:27:17 -04:00
Fixed improper detection of Chinese subtitles for embedded subtitles provider. #2914
This commit is contained in:
parent
19793cc2bb
commit
ee817c2b7e
2 changed files with 5 additions and 1 deletions
|
@ -67,7 +67,7 @@ _ALLOWED_CODECS = ("ass", "subrip", "webvtt", "mov_text")
|
|||
class EmbeddedSubtitlesProvider(Provider):
|
||||
provider_name = "embeddedsubtitles"
|
||||
|
||||
languages = {Language("por", "BR"), Language("spa", "MX")} | {
|
||||
languages = {Language("por", "BR"), Language("spa", "MX"), Language("zho", "TW")} | {
|
||||
Language.fromalpha2(l) for l in language_converters["alpha2"].codes
|
||||
}
|
||||
languages.update(set(Language.rebuild(lang, hi=True) for lang in languages))
|
||||
|
|
|
@ -196,4 +196,8 @@ _extra_languages = {
|
|||
"matches": ("fil", "filipino"),
|
||||
"language_args": ("tgl", "PH"),
|
||||
},
|
||||
"chi": {
|
||||
"matches": ("zh-tw", "zht", "zh-hant", "zhhant", "hant", "big5", "traditional"),
|
||||
"language_args": ("zho", "TW"),
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue