diff options
author | Vitiko <[email protected]> | 2023-10-20 20:48:42 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-20 23:48:42 -0400 |
commit | c2aef83a20ed4dce7e102a5ef405915637a29e63 (patch) | |
tree | d8d35b1bb60c81185e72b3e2641114e180f291a0 /libs | |
parent | e3cda5c11e2449b7be1a5b1b81b03db4c49e5075 (diff) | |
download | bazarr-c2aef83a20ed4dce7e102a5ef405915637a29e63.tar.gz bazarr-c2aef83a20ed4dce7e102a5ef405915637a29e63.zip |
Avoid FileNotFoundError indexing subtitles (#2273)v1.3.2-beta.5
Diffstat (limited to 'libs')
-rw-r--r-- | libs/subliminal_patch/core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/subliminal_patch/core.py b/libs/subliminal_patch/core.py index 8be54828b..a8aaae19d 100644 --- a/libs/subliminal_patch/core.py +++ b/libs/subliminal_patch/core.py @@ -872,14 +872,14 @@ def _search_external_subtitles(path, languages=None, only_one=False, match_stric dirpath, filename = os.path.split(path) dirpath = dirpath or '.' fn_no_ext, fileext = os.path.splitext(filename) - fn_no_ext_lower = unicodedata.normalize('NFC', fn_no_ext.lower()) + fn_no_ext_lower = fn_no_ext.lower() # unicodedata.normalize('NFC', fn_no_ext.lower()) subtitles = {} for entry in scandir(dirpath): if not entry.is_file(follow_symlinks=False): continue - p = unicodedata.normalize('NFC', entry.name) + p = entry.name # unicodedata.normalize('NFC', entry.name) # keep only valid subtitle filenames if not p.lower().endswith(SUBTITLE_EXTENSIONS): |