1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 10:24:33 +01:00

[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

View File

@ -140,7 +140,7 @@ class AnimeLabIE(AnimeLabBaseIE):
'height': image_data.get('height'), '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 = str_or_none(season_data.get('name'))
season_number = int_or_none(season_data.get('seasonNumber')) season_number = int_or_none(season_data.get('seasonNumber'))
season_id = str_or_none(season_data.get('id')) season_id = str_or_none(season_data.get('id'))