[extractor/ximalaya] Sort playlist entries (#7292)

Authored by: linsui
pull/6707/head
linsui 1 year ago committed by GitHub
parent ab6057ec80
commit 8790ea7b25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -158,7 +158,7 @@ class XimalayaAlbumIE(XimalayaBaseIE):
return self._download_json( return self._download_json(
'https://www.ximalaya.com/revision/album/v1/getTracksList', 'https://www.ximalaya.com/revision/album/v1/getTracksList',
playlist_id, note=f'Downloading tracks list page {page_idx}', playlist_id, note=f'Downloading tracks list page {page_idx}',
query={'albumId': playlist_id, 'pageNum': page_idx, 'sort': 1})['data'] query={'albumId': playlist_id, 'pageNum': page_idx})['data']
def _get_entries(self, page_data): def _get_entries(self, page_data):
for e in page_data['tracks']: for e in page_data['tracks']:

Loading…
Cancel
Save