mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-15 12:53:18 +00:00
[dcn] improve season info extraction
This commit is contained in:
parent
486375154c
commit
50b9dd7344
|
@ -210,12 +210,10 @@ def _real_extract(self, url):
|
|||
})
|
||||
|
||||
show = self._download_json(request, show_id)
|
||||
season_id = season_id or show['default_season']
|
||||
season = {}
|
||||
for _ in show['seasons']:
|
||||
if _['id'] == season_id:
|
||||
season = _
|
||||
break
|
||||
if not season_id:
|
||||
season_id = show['default_season']
|
||||
for season in show['seasons']:
|
||||
if season['id'] == season_id:
|
||||
title = season.get('title_en') or season['title_ar']
|
||||
|
||||
entries = []
|
||||
|
|
Loading…
Reference in a new issue