From 47011f429a57a8b214681ce6527b4f49eae0cd90 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Fri, 10 May 2024 06:36:04 -0400 Subject: [PATCH] Fixed issue with subsunacs provider comparing None with int. --- custom_libs/subliminal_patch/providers/subsunacs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_libs/subliminal_patch/providers/subsunacs.py b/custom_libs/subliminal_patch/providers/subsunacs.py index df969bcc8..366a42546 100644 --- a/custom_libs/subliminal_patch/providers/subsunacs.py +++ b/custom_libs/subliminal_patch/providers/subsunacs.py @@ -108,7 +108,7 @@ class SubsUnacsSubtitle(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()