1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-02-12 17:25:07 +00:00

Fixed issue with subssabbz provider comparing None with int.

This commit is contained in:
morpheus65535 2024-05-10 06:46:50 -04:00
parent 47011f429a
commit 006ee0f63a

View file

@ -110,7 +110,7 @@ class SubsSabBzSubtitle(Subtitle):
guess_filename = guessit(self.filename, video.hints)
matches |= guess_matches(video, guess_filename)
if isinstance(video, Movie) and (self.num_cds > 1 or 'cd' in guess_filename):
if isinstance(video, Movie) and ((isinstance(self.num_cds, int) and self.num_cds > 1) or 'cd' in guess_filename):
# reduce score of subtitles for multi-disc movie releases
return set()