mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-23 08:17:00 +00:00
[dcn] improve season info extraction
This commit is contained in:
parent
486375154c
commit
50b9dd7344
1 changed files with 9 additions and 11 deletions
|
@ -210,12 +210,10 @@ class DCNSeasonIE(InfoExtractor):
|
||||||
})
|
})
|
||||||
|
|
||||||
show = self._download_json(request, show_id)
|
show = self._download_json(request, show_id)
|
||||||
season_id = season_id or show['default_season']
|
if not season_id:
|
||||||
season = {}
|
season_id = show['default_season']
|
||||||
for _ in show['seasons']:
|
for season in show['seasons']:
|
||||||
if _['id'] == season_id:
|
if season['id'] == season_id:
|
||||||
season = _
|
|
||||||
break
|
|
||||||
title = season.get('title_en') or season['title_ar']
|
title = season.get('title_en') or season['title_ar']
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
|
|
Loading…
Reference in a new issue