Skip to content

Commit

Permalink
[AnimeLab] Fix extracting videos with null season data
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuszskon committed Apr 23, 2020
1 parent 2f6d029 commit 2cf8283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/animelab.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _real_extract(self, url):
'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'))
Expand Down

0 comments on commit 2cf8283

Please sign in to comment.