From 902d1e62b8251c36a622f96bc40d6ef9f052997e Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Sun, 31 Dec 2023 15:59:16 -0500 Subject: Fixed betaseries parsing issue --- libs/subliminal_patch/providers/betaseries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/subliminal_patch/providers/betaseries.py b/libs/subliminal_patch/providers/betaseries.py index a11179406..4cd66401c 100644 --- a/libs/subliminal_patch/providers/betaseries.py +++ b/libs/subliminal_patch/providers/betaseries.py @@ -114,7 +114,7 @@ class BetaSeriesProvider(Provider): subtitles = [] if 'episode' in result and 'subtitles' in result['episode']: subs = result['episode']['subtitles'] - elif 'episodes' in result and len(result['episodes'] and 'subtitles' in result['episodes'][0]): + elif 'episodes' in result and len(result['episodes']) and 'subtitles' in result['episodes'][0]: subs = result['episodes'][0]['subtitles'] else: return [] -- cgit v1.2.3