mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-23 09:26:50 +01:00
[alaa] fix playlist extraction
This commit is contained in:
parent
5377e4d8af
commit
b4cbc9e7ce
@ -68,5 +68,14 @@ class AlaaPlaylistIE(InfoExtractor):
|
||||
set_id = self._match_id(url)
|
||||
set_data = self._download_json('https://alaatv.com/api/v2/set/{0}'.format(set_id), set_id)
|
||||
set_title = set_data['data']['title']
|
||||
set_content = list(map(lambda x: x['url']['web'], set_data['data']['contents']))
|
||||
|
||||
def map_formats(v):
|
||||
return {
|
||||
'id': str(v['id']),
|
||||
'title': v['title'],
|
||||
'url': v['url']['web'],
|
||||
}
|
||||
|
||||
set_content = list(map(map_formats, set_data['data']['contents']))
|
||||
|
||||
return self.playlist_result(set_content, set_id, set_title)
|
||||
|
Loading…
Reference in New Issue
Block a user