From eb084abc21b3d37390d6ec70d73e62297032f7c3 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Sun, 25 Aug 2024 15:05:31 -0400 Subject: Fixed hearing-impaired detection using regex when language is Arabic and parenthesis are included in text. #2612 --- custom_libs/subliminal_patch/core.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'custom_libs/subliminal_patch') diff --git a/custom_libs/subliminal_patch/core.py b/custom_libs/subliminal_patch/core.py index c1629496b..f0d7f3618 100644 --- a/custom_libs/subliminal_patch/core.py +++ b/custom_libs/subliminal_patch/core.py @@ -49,7 +49,17 @@ SUBTITLE_EXTENSIONS = ('.srt', '.sub', '.smi', '.txt', '.ssa', '.ass', '.mpl', ' _POOL_LIFETIME = datetime.timedelta(hours=12) -HI_REGEX = re.compile(r'[*¶♫♪].{3,}[*¶♫♪]|[\[\(\{].{3,}[\]\)\}](?