From b7e908645ee7aa27f4631318a86c259e86b0ef75 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Wed, 4 May 2022 15:47:05 -0400 Subject: [PATCH] Fixed issue with indexing of external subtitles that include utf8 characters in file name. --- libs/subliminal_patch/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/subliminal_patch/core.py b/libs/subliminal_patch/core.py index 5e59ca895..01778375d 100644 --- a/libs/subliminal_patch/core.py +++ b/libs/subliminal_patch/core.py @@ -10,6 +10,7 @@ import socket import traceback import time import operator +import unicodedata import itertools from six.moves.http_client import ResponseNotReady @@ -784,7 +785,7 @@ def _search_external_subtitles(path, languages=None, only_one=False, scandir_gen if not entry.is_file(follow_symlinks=False): continue - p = entry.name + p = unicodedata.normalize('NFC', entry.name) # keep only valid subtitle filenames if not p.lower().endswith(SUBTITLE_EXTENSIONS):