Fix for not matching case between video and subtitles filename #278

pull/293/head
morpheus65535 6 years ago
parent 052ee77441
commit 97e72a8f9d

@ -565,7 +565,7 @@ def _search_external_subtitles(path, languages=None, only_one=False, scandir_gen
p = entry.name
# keep only valid subtitle filenames
if not p.startswith(fileroot) or not p.endswith(SUBTITLE_EXTENSIONS):
if not p.lower().startswith(fileroot.lower()) or not p.endswith(SUBTITLE_EXTENSIONS):
continue
p_root, p_ext = os.path.splitext(p)

Loading…
Cancel
Save