From 97e72a8f9d3741efe505e182c31c5e2f1113900a Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 30 Jan 2019 22:28:59 -0500 Subject: [PATCH] Fix for not matching case between video and subtitles filename #278 --- libs/subliminal_patch/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/subliminal_patch/core.py b/libs/subliminal_patch/core.py index 9fe8587d9..e46ff617d 100644 --- a/libs/subliminal_patch/core.py +++ b/libs/subliminal_patch/core.py @@ -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)