1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 01:27:07 +00:00

Merge pull request #1280 from zx900930/development

typo fix
This commit is contained in:
morpheus65535 2021-02-18 13:58:52 -05:00 committed by GitHub
commit 1aee4770ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -551,7 +551,7 @@ def guess_external_subtitles(dest_folder, subtitles):
if detected_language == 'zh':
traditional_chinese_long = [".traditional"]
traditional_chinese_short = [".cht", ".tc", ".zh-tw", ".zht", "hant", "big5", u"", u"雙語"]
if any(ext in (str(subtitle_path).lower())[:-7] for ext in traditional_chinese_short) or (str(subtitle_path).lower())[:-12]==traditional_chinese_long:
if any(ext in (str(subtitle_path).lower())[:-7] for ext in traditional_chinese_short) or (str(subtitle_path).lower())[:-12] in traditional_chinese_long:
detected_language == 'zt'
except UnicodeDecodeError:
detector = Detector()