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

This commit is contained in:
morpheus65535 2019-01-30 22:28:59 -05:00
parent 052ee77441
commit 97e72a8f9d
1 changed files with 1 additions and 1 deletions

View File

@ -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)