From 03abf8579af6303c157d9b97d2f80a8f50e49f78 Mon Sep 17 00:00:00 2001 From: zx900930 Date: Thu, 18 Feb 2021 19:57:21 +0100 Subject: [PATCH] typo fix --- bazarr/list_subtitles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr/list_subtitles.py b/bazarr/list_subtitles.py index b166a35d7..891116798 100644 --- a/bazarr/list_subtitles.py +++ b/bazarr/list_subtitles.py @@ -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()