aboutsummaryrefslogtreecommitdiffhomepage
path: root/custom_libs
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2024-05-10 06:36:04 -0400
committermorpheus65535 <[email protected]>2024-05-10 06:36:04 -0400
commit47011f429a57a8b214681ce6527b4f49eae0cd90 (patch)
tree15e97e1a6806cffda0a5f1ea2e597e779b96a92c /custom_libs
parent485122bfaeaac53b447300b44ef337b4b7a2c6c3 (diff)
downloadbazarr-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.py2
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()