Fixed issue with subssabbz provider comparing None with int.

pull/2475/head v1.4.3-beta.35
morpheus65535 8 months ago
parent 47011f429a
commit 006ee0f63a

@ -110,7 +110,7 @@ class SubsSabBzSubtitle(Subtitle):
guess_filename = guessit(self.filename, video.hints) guess_filename = guessit(self.filename, video.hints)
matches |= guess_matches(video, guess_filename) 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 # reduce score of subtitles for multi-disc movie releases
return set() return set()

Loading…
Cancel
Save