diff options
author | morpheus65535 <[email protected]> | 2024-05-10 06:46:50 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2024-05-10 06:46:50 -0400 |
commit | 006ee0f63ac39dc1e73c761a161aacfc6d62b380 (patch) | |
tree | fd04f4895be9b6faebc63dde8cb18637b0dac06c | |
parent | 47011f429a57a8b214681ce6527b4f49eae0cd90 (diff) | |
download | bazarr-1.4.3-beta.35.tar.gz bazarr-1.4.3-beta.35.zip |
Fixed issue with subssabbz provider comparing None with int.v1.4.3-beta.35
-rw-r--r-- | custom_libs/subliminal_patch/providers/subssabbz.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |