diff options
author | Vitiko <[email protected]> | 2022-04-07 22:11:57 -0400 |
---|---|---|
committer | Vitiko <[email protected]> | 2022-04-07 22:11:57 -0400 |
commit | 7040fbc0711f55a433ea234100baee1c1df8b816 (patch) | |
tree | f452cf20688fbca9f9057c88556b79af594c08fe /libs | |
parent | cefed940a00467bd3b2239e0ccf917bd63534773 (diff) | |
download | bazarr-7040fbc0711f55a433ea234100baee1c1df8b816.tar.gz bazarr-7040fbc0711f55a433ea234100baee1c1df8b816.zip |
Supersubtitles provider: Fix AttributeError for some queries (#1792)
Diffstat (limited to 'libs')
-rw-r--r-- | libs/subliminal_patch/providers/supersubtitles.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |