mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
[AnimeLab] Fix extracting videos with null season data
This commit is contained in:
parent
2f6d029e96
commit
2cf8283701
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user