Skip to content

Commit

Permalink
Fixed issue with subssabbz provider comparing None with int.
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed May 10, 2024
1 parent 47011f4 commit 006ee0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_libs/subliminal_patch/providers/subssabbz.py
Expand Up @@ -110,7 +110,7 @@ def get_matches(self, video):
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()

Expand Down

0 comments on commit 006ee0f

Please sign in to comment.