From 2cf8283701a7939304ab89b7f92aa320b56ebc71 Mon Sep 17 00:00:00 2001 From: Mariusz Skoneczko Date: Thu, 23 Apr 2020 21:08:13 +1000 Subject: [PATCH] [AnimeLab] Fix extracting videos with null season data --- youtube_dl/extractor/animelab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/animelab.py b/youtube_dl/extractor/animelab.py index f6ea5a107..4fb7ee424 100644 --- a/youtube_dl/extractor/animelab.py +++ b/youtube_dl/extractor/animelab.py @@ -140,7 +140,7 @@ class AnimeLabIE(AnimeLabBaseIE): 'height': image_data.get('height'), }) - season_data = raw_data.get('season', {}) + season_data = raw_data.get('season', {}) or {} season = str_or_none(season_data.get('name')) season_number = int_or_none(season_data.get('seasonNumber')) season_id = str_or_none(season_data.get('id'))