From 609c5d7847878487858684c965731def377fd487 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Tue, 13 Dec 2022 07:21:30 -0500 Subject: [PATCH] Fixed wizdom provider when imdb id isn't available. #2001 --- libs/subliminal_patch/providers/wizdom.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/subliminal_patch/providers/wizdom.py b/libs/subliminal_patch/providers/wizdom.py index 9b75589db..ed5482ad9 100644 --- a/libs/subliminal_patch/providers/wizdom.py +++ b/libs/subliminal_patch/providers/wizdom.py @@ -140,6 +140,9 @@ class WizdomProvider(Provider): # get the list of subtitles logger.debug('Getting the list of subtitles') r = self.session.get(url) + if r.status_code == 500: + logger.debug(f'No subtitles found for imdb id {imdb_id}') + return [] r.raise_for_status() try: results = r.json()