Skip to content

Commit

Permalink
Supersubtitles provider: Fix AttributeError for some queries (#1792)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitiko98 committed Apr 8, 2022
1 parent cefed94 commit 7040fbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/subliminal_patch/providers/supersubtitles.py
Expand Up @@ -412,7 +412,7 @@ def get_subtitle_list(self, series_id, season, episode, video):
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,
Expand Down Expand Up @@ -446,6 +446,8 @@ def get_subtitle_list(self, series_id, season, episode, video):
}
else:
target[sub_id]['releases'].append(release)
else:
logger.debug("Invalid results: %s", results)

return subtitle_list, season_pack_list

Expand Down

0 comments on commit 7040fbc

Please sign in to comment.