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

Authored by: linsui
This commit is contained in:
linsui 2023-06-12 08:02:50 +00:00 committed by GitHub
parent ab6057ec80
commit 8790ea7b25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,7 @@ def _fetch_page(self, playlist_id, page_idx):
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']: