mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-24 02:08:55 +08:00
fix: ximalaya list sort (#2804)
* enhance: ximalaya list reverse * fix: ximalaya list sort
This commit is contained in:
@@ -22,8 +22,9 @@ module.exports = async (ctx) => {
|
||||
const album_desc = author_intro + ' <br/>' + album_intro;
|
||||
const albumUrl = '/' + classify + '/' + id + '/'; // 某分类的链接
|
||||
const ispaid = albuminfo.isPaid; // 是否需要付费
|
||||
const isAsc = AlbumInfoResponse.data.data.tracksInfo.sort === 0;
|
||||
|
||||
const TrackInfoApi = `http://mobile.ximalaya.com/mobile/v1/album/track/?albumId=${id}&pageSize=${pageSize}&pageId=`;
|
||||
const TrackInfoApi = `http://mobile.ximalaya.com/mobile/v1/album/track/?albumId=${id}&isAsc=${!isAsc}&pageSize=${pageSize}&pageId=`;
|
||||
const TrackInfoResponse = await got_ins.get(TrackInfoApi + 1);
|
||||
const maxPageId = TrackInfoResponse.data.data.maxPageId; // 专辑数据
|
||||
|
||||
|
||||
Reference in New Issue
Block a user