diff options
author | morpheus65535 <[email protected]> | 2024-05-10 06:36:04 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2024-05-10 06:36:04 -0400 |
commit | 47011f429a57a8b214681ce6527b4f49eae0cd90 (patch) | |
tree | 15e97e1a6806cffda0a5f1ea2e597e779b96a92c /custom_libs | |
parent | 485122bfaeaac53b447300b44ef337b4b7a2c6c3 (diff) | |
download | bazarr-47011f429a57a8b214681ce6527b4f49eae0cd90.tar.gz bazarr-47011f429a57a8b214681ce6527b4f49eae0cd90.zip |
Fixed issue with subsunacs provider comparing None with int.
Diffstat (limited to 'custom_libs')
-rw-r--r-- | custom_libs/subliminal_patch/providers/subsunacs.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |