mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 09:01:43 +00:00
[dcn] improve season info extraction
This commit is contained in:
parent
486375154c
commit
50b9dd7344
@ -210,16 +210,14 @@ def _real_extract(self, url):
|
|||||||
})
|
})
|
||||||
|
|
||||||
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 = _
|
title = season.get('title_en') or season['title_ar']
|
||||||
break
|
|
||||||
title = season.get('title_en') or season['title_ar']
|
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
for video in show['videos']:
|
for video in show['videos']:
|
||||||
entries.append(self.url_result('http://www.dcndigital.ae/#/media/%s' % video['id'], 'DCNVideo'))
|
entries.append(self.url_result('http://www.dcndigital.ae/#/media/%s' % video['id'], 'DCNVideo'))
|
||||||
|
|
||||||
return self.playlist_result(entries, season_id, title)
|
return self.playlist_result(entries, season_id, title)
|
||||||
|
Loading…
Reference in New Issue
Block a user