This commit is contained in:
zx900930 2021-02-18 19:57:21 +01:00
parent ab7b043d86
commit 03abf8579a
No known key found for this signature in database
GPG Key ID: 662326EBB1A60A73
1 changed files with 1 additions and 1 deletions

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()