From 7040fbc0711f55a433ea234100baee1c1df8b816 Mon Sep 17 00:00:00 2001 From: Vitiko Date: Thu, 7 Apr 2022 22:11:57 -0400 Subject: [PATCH] Supersubtitles provider: Fix AttributeError for some queries (#1792) --- libs/subliminal_patch/providers/supersubtitles.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/subliminal_patch/providers/supersubtitles.py b/libs/subliminal_patch/providers/supersubtitles.py index 05362f2bf..4edc3cb20 100644 --- a/libs/subliminal_patch/providers/supersubtitles.py +++ b/libs/subliminal_patch/providers/supersubtitles.py @@ -412,7 +412,7 @@ class SuperSubtitlesProvider(Provider, ProviderSubtitleArchiveMixin): season_pack_list = {} # Check the results: - if results: + if results and not isinstance(results, list): for result in results.values(): ''' Gonna get back multiple records for the same subtitle, in case it is compatible with multiple releases, @@ -446,6 +446,8 @@ class SuperSubtitlesProvider(Provider, ProviderSubtitleArchiveMixin): } else: target[sub_id]['releases'].append(release) + else: + logger.debug("Invalid results: %s", results) return subtitle_list, season_pack_list