[AnimeLab] Fix extracting videos with null season data

This commit is contained in:
Mariusz Skoneczko 2020-04-23 21:08:13 +10:00
parent 2f6d029e96
commit 2cf8283701
1 changed files with 1 additions and 1 deletions

View File

@ -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'))