From 006ee0f63ac39dc1e73c761a161aacfc6d62b380 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Fri, 10 May 2024 06:46:50 -0400 Subject: [PATCH] Fixed issue with subssabbz provider comparing None with int. --- custom_libs/subliminal_patch/providers/subssabbz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_libs/subliminal_patch/providers/subssabbz.py b/custom_libs/subliminal_patch/providers/subssabbz.py index 18c9ffbef..f0386e889 100644 --- a/custom_libs/subliminal_patch/providers/subssabbz.py +++ b/custom_libs/subliminal_patch/providers/subssabbz.py @@ -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()