Compare commits

..

2 Commits

Author SHA1 Message Date
mimvahedi
b4cbc9e7ce [alaa] fix playlist extraction 2023-12-13 01:08:07 +03:30
mimvahedi
5377e4d8af fix typo 2023-12-13 00:40:23 +03:30

View File

@ -68,5 +68,14 @@ class AlaaPlaylistIE(InfoExtractor):
set_id = self._match_id(url) set_id = self._match_id(url)
set_data = self._download_json('https://alaatv.com/api/v2/set/{0}'.format(set_id), set_id) set_data = self._download_json('https://alaatv.com/api/v2/set/{0}'.format(set_id), set_id)
set_title = set_data['data']['title'] set_title = set_data['data']['title']
set_content = map(lambda x: x['url']['web'], set_data['data']['content'])
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) return self.playlist_result(set_content, set_id, set_title)