Skip to content

Commit 8fe58df

Browse files
authored
Improved supersubtitles by implementing case-insensitive episode search
1 parent 20b3de3 commit 8fe58df

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

custom_libs/subliminal_patch/providers/supersubtitles.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ def list_subtitles(self, video, languages):
540540
else:
541541
fixed_title = fix_movie_naming(item.series)
542542
# Check for the original and the fixed titles too
543-
if any(x in (fixed_title.strip(), item.series) for x in titles):
543+
normalized_titles = {x.lower() for x in titles}
544+
if fixed_title.strip().lower() in normalized_titles or (item.series or "").lower() in normalized_titles:
544545
subtitles.append(item)
545546

546547
time.sleep(self.multi_result_throttle)

0 commit comments

Comments
 (0)