mirror of https://github.com/morpheus65535/bazarr
Fix for not matching case between video and subtitles filename #278
This commit is contained in:
parent
052ee77441
commit
97e72a8f9d
|
@ -565,7 +565,7 @@ def _search_external_subtitles(path, languages=None, only_one=False, scandir_gen
|
||||||
p = entry.name
|
p = entry.name
|
||||||
|
|
||||||
# keep only valid subtitle filenames
|
# 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
|
continue
|
||||||
|
|
||||||
p_root, p_ext = os.path.splitext(p)
|
p_root, p_ext = os.path.splitext(p)
|
||||||
|
|
Loading…
Reference in New Issue