migu-api-enhanced 2.27.4 → 2.28.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/YDRZ-JLSMOCYV.cjs +12 -0
- package/dist/YDRZ-JLSMOCYV.cjs.map +1 -0
- package/dist/YDRZ-PHOHCFZ7.mjs +12 -0
- package/dist/activity/index.cjs +10 -10
- package/dist/activity/index.cjs.map +1 -1
- package/dist/activity/index.mjs +7 -7
- package/dist/activity/index.mjs.map +1 -1
- package/dist/chunk-4LG74IW5.cjs +38 -0
- package/dist/chunk-4LG74IW5.cjs.map +1 -0
- package/dist/chunk-CGV2KEQH.mjs +38 -0
- package/dist/chunk-CGV2KEQH.mjs.map +1 -0
- package/dist/{chunk-RI7PQIHG.cjs → chunk-EJRBQONV.cjs} +21 -29
- package/dist/chunk-EJRBQONV.cjs.map +1 -0
- package/dist/{chunk-4ZNJQZKT.mjs → chunk-GU4YGYF5.mjs} +22 -29
- package/dist/chunk-GU4YGYF5.mjs.map +1 -0
- package/dist/chunk-KFBODHXY.mjs +438 -0
- package/dist/chunk-KFBODHXY.mjs.map +1 -0
- package/dist/chunk-KGXC32BN.cjs.map +1 -1
- package/dist/chunk-RKEORE6S.mjs +34 -0
- package/dist/chunk-RKEORE6S.mjs.map +1 -0
- package/dist/{chunk-ZEGJU5LW.cjs → chunk-TVZESJ3J.cjs} +26 -33
- package/dist/chunk-TVZESJ3J.cjs.map +1 -0
- package/dist/{chunk-EIM46AX6.mjs → chunk-VD7HOOHT.mjs} +21 -29
- package/dist/chunk-VD7HOOHT.mjs.map +1 -0
- package/dist/chunk-XQIVVOH2.cjs +34 -0
- package/dist/chunk-XQIVVOH2.cjs.map +1 -0
- package/dist/chunk-Y6RTHMBM.cjs +438 -0
- package/dist/chunk-Y6RTHMBM.cjs.map +1 -0
- package/dist/decryptMrc-OOH5UIFN.cjs.map +1 -1
- package/dist/index.cjs +322 -301
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +948 -57
- package/dist/index.d.ts +948 -57
- package/dist/index.mjs +220 -199
- package/dist/index.mjs.map +1 -1
- package/dist/login/index.cjs +81 -95
- package/dist/login/index.cjs.map +1 -1
- package/dist/login/index.mjs +76 -90
- package/dist/login/index.mjs.map +1 -1
- package/dist/mrc/index.cjs +8 -5
- package/dist/mrc/index.cjs.map +1 -1
- package/dist/mrc/index.d.cts +0 -10
- package/dist/mrc/index.d.ts +0 -10
- package/dist/mrc/index.mjs +7 -4
- package/dist/mrc/index.mjs.map +1 -1
- package/dist/{chunk-TOFOR57V.cjs → publicKey-K56XCMLR.cjs} +3 -4
- package/dist/publicKey-K56XCMLR.cjs.map +1 -0
- package/dist/{chunk-JRQEIAY5.mjs → publicKey-UVL2ID6N.mjs} +2 -3
- package/dist/rsalib-FMWPCK5N.mjs +9 -0
- package/dist/rsalib-VSMUMKOT.cjs +9 -0
- package/dist/rsalib-VSMUMKOT.cjs.map +1 -0
- package/dist/utils/index.cjs +185 -14
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +48 -16
- package/dist/utils/index.d.ts +48 -16
- package/dist/utils/index.mjs +193 -22
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +106 -101
- package/dist/YDRZ-HSTSW5FC.mjs +0 -11
- package/dist/YDRZ-KF4GXM2T.cjs +0 -11
- package/dist/YDRZ-KF4GXM2T.cjs.map +0 -1
- package/dist/chunk-4ZNJQZKT.mjs.map +0 -1
- package/dist/chunk-AJYZYXNE.mjs +0 -18
- package/dist/chunk-AJYZYXNE.mjs.map +0 -1
- package/dist/chunk-C56WQXBU.cjs +0 -13
- package/dist/chunk-C56WQXBU.cjs.map +0 -1
- package/dist/chunk-EIM46AX6.mjs.map +0 -1
- package/dist/chunk-HDGZY5R6.mjs +0 -13
- package/dist/chunk-HDGZY5R6.mjs.map +0 -1
- package/dist/chunk-ILRMRBMK.cjs +0 -71
- package/dist/chunk-ILRMRBMK.cjs.map +0 -1
- package/dist/chunk-QEH62Z4S.cjs +0 -18
- package/dist/chunk-QEH62Z4S.cjs.map +0 -1
- package/dist/chunk-QMBC3CRQ.mjs +0 -51
- package/dist/chunk-QMBC3CRQ.mjs.map +0 -1
- package/dist/chunk-QTK2O5KQ.mjs +0 -71
- package/dist/chunk-QTK2O5KQ.mjs.map +0 -1
- package/dist/chunk-RI7PQIHG.cjs.map +0 -1
- package/dist/chunk-TIKOSETY.cjs +0 -51
- package/dist/chunk-TIKOSETY.cjs.map +0 -1
- package/dist/chunk-TOFOR57V.cjs.map +0 -1
- package/dist/chunk-ZEGJU5LW.cjs.map +0 -1
- package/dist/publicKey-EHY5LDOP.cjs +0 -8
- package/dist/publicKey-EHY5LDOP.cjs.map +0 -1
- package/dist/publicKey-LX6G3T7L.mjs +0 -8
- package/dist/rsalib-GGMEGQT2.cjs +0 -9
- package/dist/rsalib-GGMEGQT2.cjs.map +0 -1
- package/dist/rsalib-HO4SSCTO.mjs +0 -9
- package/dist/rsalib-HO4SSCTO.mjs.map +0 -1
- /package/dist/{YDRZ-HSTSW5FC.mjs.map → YDRZ-PHOHCFZ7.mjs.map} +0 -0
- /package/dist/{chunk-JRQEIAY5.mjs.map → publicKey-UVL2ID6N.mjs.map} +0 -0
- /package/dist/{publicKey-LX6G3T7L.mjs.map → rsalib-FMWPCK5N.mjs.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,129 +1,186 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4LG74IW5cjs = require('./chunk-4LG74IW5.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXQIVVOH2cjs = require('./chunk-XQIVVOH2.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
var _chunkTVZESJ3Jcjs = require('./chunk-TVZESJ3J.cjs');
|
|
11
12
|
|
|
12
13
|
// src/modules/search.ts
|
|
13
14
|
var searchSong = async (text, page = 1) => {
|
|
14
|
-
return await
|
|
15
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/song/v1.0?pageNo=${page}&text=${text}`);
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
// src/modules/search_playlist.ts
|
|
18
19
|
var searchPlaylist = async (text, page = 1, typeOrder = 0) => {
|
|
19
|
-
return await
|
|
20
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/music-list/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
// src/modules/search_album.ts
|
|
23
24
|
var searchAlbum = async (text, page = 1, typeOrder = 0) => {
|
|
24
|
-
return await
|
|
25
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/album/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
// src/modules/search_singer.ts
|
|
28
29
|
var searchSinger = async (text, page = 1) => {
|
|
29
|
-
return await
|
|
30
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/singer/v2.0?pageNo=${page}&text=${text}`);
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
// src/modules/search_concert.ts
|
|
33
34
|
var searchConcert = async (text, page = 1) => {
|
|
34
|
-
return await
|
|
35
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/concert/v1.0?pageNo=${page}&text=${text}`);
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
// src/modules/search_hot.ts
|
|
38
39
|
var getSearchHot = async () => {
|
|
39
|
-
return await
|
|
40
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/bmw/hot-search/search-rank-list/v1.0`);
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
// src/modules/search_default.ts
|
|
43
44
|
var getSearchDefault = async () => {
|
|
44
|
-
return await
|
|
45
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/column/search/default-text/v3.0?resourceVersion=2`);
|
|
45
46
|
};
|
|
46
47
|
|
|
47
48
|
// src/modules/search_mv.ts
|
|
48
49
|
var searchMv = async (text, page = 1, typeOrder = 0) => {
|
|
49
|
-
return await
|
|
50
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/video/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
|
|
50
51
|
};
|
|
51
52
|
|
|
52
53
|
// src/modules/search_suggest.ts
|
|
53
54
|
var searchSuggest = async (text) => {
|
|
54
|
-
return await
|
|
55
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/suggest/v1.0?text=${text}`);
|
|
55
56
|
};
|
|
56
57
|
|
|
57
|
-
// src/modules/
|
|
58
|
-
var
|
|
59
|
-
|
|
58
|
+
// src/modules/search_crbt.ts
|
|
59
|
+
var searchCrbt = async (text, page = 1) => {
|
|
60
|
+
const res = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
61
|
+
"https://c.musicapp.migu.cn/MIGUM2.0/v1.0/content/tone_search_all.do",
|
|
62
|
+
{
|
|
63
|
+
params: {
|
|
64
|
+
pageNo: _nullishCoalesce(page, () => ( 1)),
|
|
65
|
+
text
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
const items = _optionalChain([res, 'access', _ => _.data, 'optionalAccess', _2 => _2.toneList, 'access', _3 => _3.map, 'call', _4 => _4((item) => {
|
|
70
|
+
const rbt = item.rbtSongItem || {};
|
|
71
|
+
const highlights = rbt.highLight || [];
|
|
72
|
+
const singerList = (rbt.singer.split("|") || []).map((name) => ({
|
|
73
|
+
"id": "",
|
|
74
|
+
"name": name,
|
|
75
|
+
"img": "",
|
|
76
|
+
"nameSpelling": ""
|
|
77
|
+
}));
|
|
78
|
+
return { song: {
|
|
79
|
+
"resourceType": rbt.resourceType,
|
|
80
|
+
"contentId": rbt.contentId,
|
|
81
|
+
"songId": rbt.songId,
|
|
82
|
+
"songName": rbt.songName,
|
|
83
|
+
"copyrightId": rbt.copyrightId,
|
|
84
|
+
"copyrightType": parseInt(rbt.copyright),
|
|
85
|
+
"ringToneId": rbt.contentId,
|
|
86
|
+
"ringCopyrightId": rbt.copyrightId,
|
|
87
|
+
"haveShockRing": 1,
|
|
88
|
+
"relatedSongs": rbt.relatedSongs || [],
|
|
89
|
+
"duration": 0,
|
|
90
|
+
"img1": _optionalChain([rbt, 'access', _5 => _5.imgItems, 'optionalAccess', _6 => _6[0], 'optionalAccess', _7 => _7.img]) || "",
|
|
91
|
+
"img2": _optionalChain([rbt, 'access', _8 => _8.imgItems, 'optionalAccess', _9 => _9[1], 'optionalAccess', _10 => _10.img]) || "",
|
|
92
|
+
"img3": _optionalChain([rbt, 'access', _11 => _11.imgItems, 'optionalAccess', _12 => _12[2], 'optionalAccess', _13 => _13.img]) || "",
|
|
93
|
+
"singerList": singerList,
|
|
94
|
+
"highlights": highlights,
|
|
95
|
+
// new
|
|
96
|
+
validTime: rbt.validTime,
|
|
97
|
+
price: rbt.price,
|
|
98
|
+
status: rbt.status,
|
|
99
|
+
vipType: rbt.vipType,
|
|
100
|
+
showLabels: rbt.showLabels || [],
|
|
101
|
+
opNumItem: rbt.opNumItem || {}
|
|
102
|
+
} };
|
|
103
|
+
})]) || [];
|
|
104
|
+
return {
|
|
105
|
+
code: res.code,
|
|
106
|
+
info: res.info,
|
|
107
|
+
data: {
|
|
108
|
+
hasNext: _optionalChain([res, 'access', _14 => _14.data, 'optionalAccess', _15 => _15.toneList, 'optionalAccess', _16 => _16.length]) === 30,
|
|
109
|
+
items
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
// src/modules/search_vrbt.ts
|
|
115
|
+
var searchVrbt = async (text, page = 1) => {
|
|
116
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/rbt/v1.0?pageNo=${page}&text=${text}`);
|
|
60
117
|
};
|
|
61
118
|
|
|
62
119
|
// src/modules/search_ticket.ts
|
|
63
120
|
var searchTicket = async (text, page = 1) => {
|
|
64
|
-
return await
|
|
121
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/ticket/v1.0?pageNo=${page}&text=${text}`);
|
|
65
122
|
};
|
|
66
123
|
|
|
67
124
|
// src/modules/search_singerTab.ts
|
|
68
125
|
var getSearchSingerTab = async () => {
|
|
69
|
-
return await
|
|
126
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM3.0/bmw/singer-index/tabs/v2.0`);
|
|
70
127
|
};
|
|
71
128
|
|
|
72
129
|
// src/modules/search_singerTab_list.ts
|
|
73
130
|
var getSearchSingerTabList = async (tab = "") => {
|
|
74
|
-
return await
|
|
131
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM3.0/bmw/singer-index/list/v1.0?tab=${tab}&templateVersion=3`);
|
|
75
132
|
};
|
|
76
133
|
|
|
77
134
|
// src/modules/album_info.ts
|
|
78
135
|
var getAlbumInfo = async (albumId) => {
|
|
79
|
-
return await
|
|
136
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/album/v2.0?albumId=${albumId}`);
|
|
80
137
|
};
|
|
81
138
|
|
|
82
139
|
// src/modules/album_song.ts
|
|
83
140
|
var getAlbumSong = async (albumId, page = 1) => {
|
|
84
|
-
return await
|
|
141
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/MIGUM3.0/resource/album/song/v2.0?albumId=${albumId}&pageNo=${page}`);
|
|
85
142
|
};
|
|
86
143
|
|
|
87
144
|
// src/modules/playlist_info.ts
|
|
88
145
|
var getPlaylistInfo = async (playlistId) => {
|
|
89
|
-
return await
|
|
146
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/playlist/v2.0?playlistId=${playlistId}`);
|
|
90
147
|
};
|
|
91
148
|
|
|
92
149
|
// src/modules/playlist_song.ts
|
|
93
150
|
var getPlaylistSong = async (playlistId, page = 1, size = 20) => {
|
|
94
|
-
return await
|
|
151
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/playlist/song/v2.0?pageNo=${page}&pageSize=${size}&playlistId=${playlistId}`);
|
|
95
152
|
};
|
|
96
153
|
|
|
97
154
|
// src/modules/singer_index.ts
|
|
98
155
|
var getSingerIndex = async (singerId) => {
|
|
99
|
-
return await
|
|
156
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/singer/index/v1.0?singerId=${singerId}`);
|
|
100
157
|
};
|
|
101
158
|
|
|
102
159
|
// src/modules/singer_song.ts
|
|
103
160
|
var getSingerSong = async (singerId, page = 1) => {
|
|
104
|
-
return await
|
|
161
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/singer/song/v1.0?pageNo=${page}&singerId=${singerId}&type=1`);
|
|
105
162
|
};
|
|
106
163
|
|
|
107
164
|
// src/modules/singer_album.ts
|
|
108
165
|
var getSingerAlbum = async (singerId, page = 1) => {
|
|
109
|
-
const res = await
|
|
110
|
-
_optionalChain([res, 'optionalAccess',
|
|
166
|
+
const res = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/singer/album/v1.0?singerId=${singerId}&pageNo=${page}`);
|
|
167
|
+
_optionalChain([res, 'optionalAccess', _17 => _17.data, 'optionalAccess', _18 => _18.header, 'optionalAccess', _19 => _19.nextPageUrl]) ? res.data.header.hasNext = true : res.data.header.hasNext = false;
|
|
111
168
|
return res;
|
|
112
169
|
};
|
|
113
170
|
|
|
114
171
|
// src/modules/rank_index.ts
|
|
115
172
|
var getRankIndex = async () => {
|
|
116
|
-
return await
|
|
173
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/rank/rank-index/v1.0`);
|
|
117
174
|
};
|
|
118
175
|
|
|
119
176
|
// src/modules/rank_info.ts
|
|
120
177
|
var getRankInfo = async (rankId, page = 1) => {
|
|
121
|
-
return await
|
|
178
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/rank/rank-info/v1.0?pageNo=${page}&rankId=${rankId}`);
|
|
122
179
|
};
|
|
123
180
|
|
|
124
181
|
// src/modules/recommend_playlist.ts
|
|
125
182
|
var getRecommendPlaylist = async () => {
|
|
126
|
-
return await
|
|
183
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/index-show/recommend-playlist/v3.0`);
|
|
127
184
|
};
|
|
128
185
|
|
|
129
186
|
// src/modules/recommend_song.ts
|
|
@@ -136,11 +193,11 @@ var getSceneRecommend = async (scene = "TODAY_RECOMMEND", size = 10) => {
|
|
|
136
193
|
} else {
|
|
137
194
|
return { error: "scene\u53C2\u6570\u9519\u8BEF PRIVATE_FM \u6216 TODAY_RECOMMEND" };
|
|
138
195
|
}
|
|
139
|
-
return await
|
|
196
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
140
197
|
`https://app.c.nf.migu.cn/pc/resource-dataloader/recommend-song/v1.0?${params}`,
|
|
141
198
|
{
|
|
142
199
|
headers: {
|
|
143
|
-
"deviceId":
|
|
200
|
+
"deviceId": _chunkXQIVVOH2cjs.getDeviceId.call(void 0, )
|
|
144
201
|
}
|
|
145
202
|
}
|
|
146
203
|
);
|
|
@@ -151,14 +208,14 @@ var getRadioRecommend = async (type = 1) => {
|
|
|
151
208
|
if (type !== 1 && type !== 2) {
|
|
152
209
|
return { error: "type must be 1 or 2" };
|
|
153
210
|
}
|
|
154
|
-
return await
|
|
211
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
155
212
|
`https://app.c.nf.migu.cn/pc/column/music-radio/recommend/song/v2.0?remain=0&actionId=1&type=${type}`,
|
|
156
213
|
{
|
|
157
214
|
method: "GET",
|
|
158
215
|
headers: {
|
|
159
216
|
"Referer": "https://music.migu.cn/",
|
|
160
217
|
"channel": "014X031",
|
|
161
|
-
"deviceId":
|
|
218
|
+
"deviceId": _chunkXQIVVOH2cjs.getDeviceId.call(void 0, ),
|
|
162
219
|
"recommendstatus": "1"
|
|
163
220
|
}
|
|
164
221
|
}
|
|
@@ -167,20 +224,20 @@ var getRadioRecommend = async (type = 1) => {
|
|
|
167
224
|
|
|
168
225
|
// src/modules/comment.ts
|
|
169
226
|
var getComment = async (resourceId, resourceType = 2, size = 20, hotCommentStart = 0) => {
|
|
170
|
-
return await
|
|
227
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://u.musicapp.migu.cn/MIGUM3.0/user/comment/stack/v1.0?resourceId=${resourceId}&resourceType=${resourceType}&pageSize=${size}&hotCommentStart=${hotCommentStart}&platformType=1&commentId=0&queryType=1`);
|
|
171
228
|
};
|
|
172
229
|
|
|
173
230
|
// src/modules/resourceinfo.ts
|
|
174
231
|
var getResourceInfo = async (resourceIds = "", copyrightIds = "", resourceType = 2) => {
|
|
175
232
|
resourceIds = resourceIds.replace(/,/g, "|");
|
|
176
233
|
copyrightIds = copyrightIds.replace(/,/g, "|");
|
|
177
|
-
return await
|
|
234
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${resourceIds}©rightId=${copyrightIds}&resourceType=${resourceType}`);
|
|
178
235
|
};
|
|
179
236
|
|
|
180
237
|
// src/modules/can-listen.ts
|
|
181
238
|
var checkCanListen = async (contentIds) => {
|
|
182
|
-
return await
|
|
183
|
-
`https://app.c.
|
|
239
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
240
|
+
`https://app.c.vip.migu.cn/strategy/pc/can-listen/v1.0`,
|
|
184
241
|
{
|
|
185
242
|
method: "post",
|
|
186
243
|
headers: {
|
|
@@ -197,28 +254,30 @@ var checkCanListen = async (contentIds) => {
|
|
|
197
254
|
|
|
198
255
|
// src/modules/opNum.ts
|
|
199
256
|
var getOpNum = async (ids) => {
|
|
200
|
-
return await
|
|
257
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/opnum/query-optype-v1.0?opType=play&resourceType=2021&ids=${ids}`);
|
|
201
258
|
};
|
|
202
259
|
|
|
203
260
|
// src/modules/url_v1.ts
|
|
204
261
|
var getUrlV1 = async (contentId, copyrightId, toneFlag = "PQ", resourceType = "2") => {
|
|
205
|
-
|
|
206
|
-
`https://app.c.
|
|
262
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
263
|
+
`https://app.c.vip.migu.cn/MIGUM3.0/strategy/pc/listen/v1.0`,
|
|
207
264
|
{
|
|
265
|
+
params: {
|
|
266
|
+
contentId,
|
|
267
|
+
copyrightId,
|
|
268
|
+
resourceType,
|
|
269
|
+
toneFlag: "PQ"
|
|
270
|
+
},
|
|
208
271
|
headers: {
|
|
209
272
|
"Channel": "014X031"
|
|
210
273
|
}
|
|
211
274
|
}
|
|
212
275
|
);
|
|
213
|
-
data.data.oriUrl = data.data.url || "";
|
|
214
|
-
data.data.url = _chunkILRMRBMKcjs.changeQuality.call(void 0, data.data.url || "", toneFlag, "PQ", true);
|
|
215
|
-
return data;
|
|
216
276
|
};
|
|
217
277
|
|
|
218
278
|
// src/modules/url_v2.ts
|
|
219
|
-
var _axios = require('axios'); var _axios2 = _interopRequireDefault(_axios);
|
|
220
279
|
var getUrlV2 = async (contentId, copyrightId, toneFlag = "PQ", pacmtoken = "") => {
|
|
221
|
-
const deviceId =
|
|
280
|
+
const deviceId = _chunkXQIVVOH2cjs.getDeviceId.call(void 0, );
|
|
222
281
|
const timestamp = Date.now();
|
|
223
282
|
const headers = {
|
|
224
283
|
"channel": "014X031",
|
|
@@ -233,48 +292,25 @@ var getUrlV2 = async (contentId, copyrightId, toneFlag = "PQ", pacmtoken = "") =
|
|
|
233
292
|
"timestamp": timestamp.toString(),
|
|
234
293
|
"referer": "https://music.migu.cn/"
|
|
235
294
|
};
|
|
236
|
-
const
|
|
237
|
-
`https://app.c.nf.migu.cn/strategy/pc/listen/v2.0
|
|
295
|
+
const buf = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
296
|
+
`https://app.c.nf.migu.cn/strategy/pc/listen/v2.0`,
|
|
238
297
|
{
|
|
298
|
+
params: {
|
|
299
|
+
contentId,
|
|
300
|
+
copyrightId,
|
|
301
|
+
scene: "",
|
|
302
|
+
netType: "01",
|
|
303
|
+
resourceType: "2",
|
|
304
|
+
toneFlag
|
|
305
|
+
},
|
|
239
306
|
headers,
|
|
240
307
|
responseType: "arraybuffer"
|
|
241
308
|
}
|
|
242
309
|
);
|
|
243
|
-
return
|
|
244
|
-
};
|
|
245
|
-
var SECURE = "Jk8qzuePiJ1qE3mDYhLQ3T73DtDoAhLP";
|
|
246
|
-
var aw = 171;
|
|
247
|
-
var iw = 205;
|
|
248
|
-
var ow = 1;
|
|
249
|
-
function textEncode(e) {
|
|
250
|
-
return new TextEncoder().encode(e);
|
|
251
|
-
}
|
|
252
|
-
function textDecode(e) {
|
|
253
|
-
return new TextDecoder("utf-8").decode(e);
|
|
254
|
-
}
|
|
255
|
-
function decryptBlob(e, r) {
|
|
256
|
-
if (r.length == 0)
|
|
257
|
-
return null;
|
|
258
|
-
var n = e.length;
|
|
259
|
-
if (n < 4 || !(e[0] == aw && e[1] == iw) || e[2] != ow)
|
|
260
|
-
return null;
|
|
261
|
-
for (var t = e[3], a = textEncode(r), i = a.length, o = new Uint8Array(n - 4), s = 0, c = 4; c < n; c++, s++)
|
|
262
|
-
o[s] = e[c] + t - a[s % i];
|
|
263
|
-
return o;
|
|
264
|
-
}
|
|
265
|
-
function decryptData(buf) {
|
|
266
|
-
let l = buf, a = SECURE, u = decryptBlob(new Uint8Array(l), a), p = u ? textDecode(u) : null;
|
|
267
|
-
try {
|
|
268
|
-
const data = p ? JSON.parse(p) : null;
|
|
269
|
-
return data;
|
|
270
|
-
} catch (e) {
|
|
271
|
-
return null;
|
|
272
|
-
}
|
|
273
|
-
;
|
|
274
|
-
}
|
|
310
|
+
return _chunk4LG74IW5cjs.decryptData.call(void 0, buf);
|
|
311
|
+
};
|
|
275
312
|
|
|
276
313
|
// src/modules/url_h5v2.4.ts
|
|
277
|
-
|
|
278
314
|
var getUrlH5V24 = async (contentId, copyrightId, toneFlag = "PQ") => {
|
|
279
315
|
const headers = {
|
|
280
316
|
"birth": "h5page",
|
|
@@ -283,61 +319,20 @@ var getUrlH5V24 = async (contentId, copyrightId, toneFlag = "PQ") => {
|
|
|
283
319
|
"location-data": "30.6698676660,104.1229614820",
|
|
284
320
|
"location-info": ""
|
|
285
321
|
};
|
|
286
|
-
const
|
|
322
|
+
const buf = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
287
323
|
`https://c.musicapp.migu.cn/strategy/listen-url/h5/v2.4?contentId=${contentId}©rightId=${copyrightId}&resourceType=2&netType=01&toneFlag=PQ&scene=&lowerQualityContentId=${contentId}`,
|
|
288
324
|
{
|
|
289
325
|
headers,
|
|
290
326
|
responseType: "arraybuffer"
|
|
291
327
|
}
|
|
292
328
|
);
|
|
293
|
-
|
|
294
|
-
if (_optionalChain([data, 'optionalAccess', _4 => _4.data, 'optionalAccess', _5 => _5.url]) === "") {
|
|
295
|
-
return { success: false, error: "URL \u4E3A\u7A7A" };
|
|
296
|
-
}
|
|
297
|
-
data.data.oriUrl = data.data.url || "";
|
|
298
|
-
data.data.url = _chunkILRMRBMKcjs.changeQuality.call(void 0, data.data.url || "", toneFlag, "PQ", true);
|
|
299
|
-
return data;
|
|
300
|
-
};
|
|
301
|
-
var SECURE2 = ["Jk8qzuePiJ1qE3mDYhLQ3T73DtDoAhLP"];
|
|
302
|
-
function strToUtf8Bytes(e) {
|
|
303
|
-
return new TextEncoder().encode(e);
|
|
304
|
-
}
|
|
305
|
-
function utf8Bytes2str(bytes) {
|
|
306
|
-
const result = [];
|
|
307
|
-
for (const byte of bytes) {
|
|
308
|
-
if (byte < 16) {
|
|
309
|
-
result.push(String.fromCharCode(byte));
|
|
310
|
-
} else {
|
|
311
|
-
result.push("%");
|
|
312
|
-
result.push(byte.toString(16));
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
return decodeURIComponent(result.join(""));
|
|
316
|
-
}
|
|
317
|
-
function decode(e, t) {
|
|
318
|
-
if (0 == t.length)
|
|
319
|
-
return null;
|
|
320
|
-
var n = e.length;
|
|
321
|
-
if (n < 4)
|
|
322
|
-
return null;
|
|
323
|
-
if (171 != e[0] || 205 != e[1])
|
|
324
|
-
return null;
|
|
325
|
-
if (1 != e[2])
|
|
326
|
-
return null;
|
|
327
|
-
for (var r = e[3], o = strToUtf8Bytes(t), a = o.length, i = new Uint8Array(n - 4), s = 0, c = 4; c < n; c++, s++)
|
|
328
|
-
i[s] = e[c] + r - o[s % a];
|
|
329
|
-
return i;
|
|
330
|
-
}
|
|
331
|
-
var decryptData2 = (ab) => {
|
|
332
|
-
const r = decode(new Uint8Array(ab), SECURE2[0]);
|
|
333
|
-
const d = utf8Bytes2str(r);
|
|
334
|
-
return JSON.parse(d);
|
|
329
|
+
return _chunk4LG74IW5cjs.decryptData.call(void 0, buf);
|
|
335
330
|
};
|
|
336
331
|
|
|
337
332
|
// src/modules/version.ts
|
|
338
333
|
var getVersion = async () => {
|
|
339
|
-
return await
|
|
340
|
-
`
|
|
334
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
335
|
+
`https://app.c.nf.migu.cn/column/client/version/v1.0`,
|
|
341
336
|
{
|
|
342
337
|
headers: {
|
|
343
338
|
"ua": "Android_migu",
|
|
@@ -350,13 +345,13 @@ var getVersion = async () => {
|
|
|
350
345
|
// src/modules/mv_info.ts
|
|
351
346
|
var getMvInfo = async (mvContentIds) => {
|
|
352
347
|
mvContentIds = mvContentIds.replace(/,/g, "|");
|
|
353
|
-
return await
|
|
348
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://c.musicapp.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${mvContentIds}&resourceType=D&needSimple=01`);
|
|
354
349
|
};
|
|
355
350
|
|
|
356
351
|
// src/modules/mv_hls.ts
|
|
357
352
|
var getMvHls = async (mvContentId, mvCopyrightId, url, size, format = "050012", needHttps = true) => {
|
|
358
353
|
url = encodeURIComponent(url);
|
|
359
|
-
return await
|
|
354
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
360
355
|
`https://c.musicapp.migu.cn/MIGUM2.0/v1.0/content/mvplayinfo.do?format=${format}&mvContentId=${mvContentId}&mvCopyrightId=${mvCopyrightId}&needHttps=${needHttps}&size=${size}&url=${url}`,
|
|
361
356
|
{
|
|
362
357
|
method: "GET",
|
|
@@ -369,7 +364,7 @@ var getMvHls = async (mvContentId, mvCopyrightId, url, size, format = "050012",
|
|
|
369
364
|
|
|
370
365
|
// src/modules/passport_checkToken.ts
|
|
371
366
|
var checkToken = async (token = "") => {
|
|
372
|
-
return await
|
|
367
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
373
368
|
`https://c.musicapp.migu.cn/mgateway/api/checkPacMtoken`,
|
|
374
369
|
{
|
|
375
370
|
headers: {
|
|
@@ -380,8 +375,8 @@ var checkToken = async (token = "") => {
|
|
|
380
375
|
};
|
|
381
376
|
|
|
382
377
|
// src/modules/passport_pacmToken.ts
|
|
383
|
-
var getPacmToken = async (token
|
|
384
|
-
const { data, cookies } = await
|
|
378
|
+
var getPacmToken = async (token, type = "2", sourceId = "220029", activityId = "MUSIC-WWW") => {
|
|
379
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
|
|
385
380
|
`https://c.musicapp.migu.cn/user/h5/token-validate/v3.0?token=${token}&type=${type}&sourceId=${sourceId}&activityId=${activityId}`,
|
|
386
381
|
{
|
|
387
382
|
cookie: { idmpauth: "true@passport.migu.cn" },
|
|
@@ -398,12 +393,12 @@ var getPacmToken = async (token = "", type = "2", sourceId = "220029", activityI
|
|
|
398
393
|
|
|
399
394
|
// src/modules/ticket.ts
|
|
400
395
|
var getTicketInfo = async (page = 1, size = 20) => {
|
|
401
|
-
return await
|
|
396
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/v1.0/ticket/home/ticket?pageNum=${page}&pageCount=${size}`);
|
|
402
397
|
};
|
|
403
398
|
|
|
404
399
|
// src/modules/user_badge.ts
|
|
405
400
|
var getUserBadge = async (pacmtoken) => {
|
|
406
|
-
const { data, cookies } = await
|
|
401
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/open/api/member/icon/v1.0", {
|
|
407
402
|
cookie: { pacmtoken },
|
|
408
403
|
headers: {
|
|
409
404
|
"Referer": "https://music.migu.cn/",
|
|
@@ -416,7 +411,7 @@ var getUserBadge = async (pacmtoken) => {
|
|
|
416
411
|
|
|
417
412
|
// src/modules/user_queryInfo.ts
|
|
418
413
|
var queryUserInfo = async (pacmtoken) => {
|
|
419
|
-
const { data, cookies } = await
|
|
414
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/user/h5/queryUserInfo/v1.0", {
|
|
420
415
|
cookie: { pacmtoken },
|
|
421
416
|
headers: {
|
|
422
417
|
"channel": "014X031",
|
|
@@ -428,7 +423,7 @@ var queryUserInfo = async (pacmtoken) => {
|
|
|
428
423
|
|
|
429
424
|
// src/modules/user_homePage.ts
|
|
430
425
|
var getUserHomePage = async (pacmtoken) => {
|
|
431
|
-
const { data, cookies } = await
|
|
426
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/user/home-page/v2.0", {
|
|
432
427
|
cookie: { pacmtoken }
|
|
433
428
|
});
|
|
434
429
|
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
@@ -436,7 +431,7 @@ var getUserHomePage = async (pacmtoken) => {
|
|
|
436
431
|
|
|
437
432
|
// src/modules/user_recom_today.ts
|
|
438
433
|
var getTodayRecommend = async (pacmtoken) => {
|
|
439
|
-
const { data, cookies } = await
|
|
434
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/v1.0/template/todayRecommendList/release?actionId=1&index=1&templateVersion=5", {
|
|
440
435
|
cookie: { pacmtoken }
|
|
441
436
|
});
|
|
442
437
|
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
@@ -444,7 +439,7 @@ var getTodayRecommend = async (pacmtoken) => {
|
|
|
444
439
|
|
|
445
440
|
// src/modules/user_collect_list.ts
|
|
446
441
|
var getUserCollectList = async (pacmtoken, page = 1, size = 20) => {
|
|
447
|
-
const { data, cookies } = await
|
|
442
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/h5/user/collection/v1.0?pageNo=${page}&type=1&OPType=03&pageSize=${size}&resourceType=2021`, {
|
|
448
443
|
cookie: { pacmtoken }
|
|
449
444
|
});
|
|
450
445
|
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
@@ -452,7 +447,7 @@ var getUserCollectList = async (pacmtoken, page = 1, size = 20) => {
|
|
|
452
447
|
|
|
453
448
|
// src/modules/user_myList.ts
|
|
454
449
|
var getUserMyList = async (pacmtoken, queryType = 0, page = 1, size = 20) => {
|
|
455
|
-
const { data, cookies } = await
|
|
450
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/h5/my-music-list/v1.0?queryType=${queryType}&pageNo=${page}&pageSize=${size}`, {
|
|
456
451
|
cookie: { pacmtoken }
|
|
457
452
|
});
|
|
458
453
|
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
@@ -460,17 +455,17 @@ var getUserMyList = async (pacmtoken, queryType = 0, page = 1, size = 20) => {
|
|
|
460
455
|
|
|
461
456
|
// src/modules/singer_similar.ts
|
|
462
457
|
var getSingerSimilar = async (singerId) => {
|
|
463
|
-
return await
|
|
458
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/recommend-singer/similar/v1.0?singerId=${singerId}`);
|
|
464
459
|
};
|
|
465
460
|
|
|
466
461
|
// src/modules/recommend_similarSong.ts
|
|
467
462
|
var getSimilarSongRecommend = async (contentId = "") => {
|
|
468
|
-
return await
|
|
463
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
469
464
|
`https://app.c.nf.migu.cn/bmw/recommend-song/similar/v1.0?contentId=${contentId}`,
|
|
470
465
|
{
|
|
471
466
|
method: "GET",
|
|
472
467
|
headers: {
|
|
473
|
-
"deviceId":
|
|
468
|
+
"deviceId": _chunkXQIVVOH2cjs.getDeviceId.call(void 0, ),
|
|
474
469
|
"recommendstatus": "1"
|
|
475
470
|
}
|
|
476
471
|
}
|
|
@@ -479,22 +474,22 @@ var getSimilarSongRecommend = async (contentId = "") => {
|
|
|
479
474
|
|
|
480
475
|
// src/modules/mv_recommend.ts
|
|
481
476
|
var getMVRecommend = async (mvContentId, page = 1) => {
|
|
482
|
-
return await
|
|
477
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://c.musicapp.migu.cn/MIGUM3.0/v3.0/content/recommend-mv?resourceId=${mvContentId}&pageNumber=${page}&resourceType=D`);
|
|
483
478
|
};
|
|
484
479
|
|
|
485
480
|
// src/modules/playlist_square_page.ts
|
|
486
481
|
var getSquarePage = async () => {
|
|
487
|
-
return await
|
|
482
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/page-data/playlist-square-recommend/v1.0?templateVersion=2`);
|
|
488
483
|
};
|
|
489
484
|
|
|
490
485
|
// src/modules/search_lrc.ts
|
|
491
486
|
var searchLrc = async (text, page = 1) => {
|
|
492
|
-
return await
|
|
487
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/lrc/v1.0?pageNo=${page}&text=${text}`);
|
|
493
488
|
};
|
|
494
489
|
|
|
495
490
|
// src/modules/recommend_radio_all.ts
|
|
496
491
|
var getRadioRecommendAll = async (pacmtoken = "") => {
|
|
497
|
-
const { data, cookies } = await
|
|
492
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/page-data/music-radio/v1.0?templateVersion=1`, {
|
|
498
493
|
cookie: pacmtoken ? { pacmtoken } : void 0
|
|
499
494
|
});
|
|
500
495
|
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
@@ -506,16 +501,16 @@ var getSVideoInfo = async (contentIds) => {
|
|
|
506
501
|
contentIdList.map((item) => {
|
|
507
502
|
return "6000," + item;
|
|
508
503
|
}).join("|");
|
|
509
|
-
return await
|
|
504
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/video-info/by-id/v1.0?requestParams=${contentIdList}`);
|
|
510
505
|
};
|
|
511
506
|
|
|
512
507
|
// src/modules/svideo_search.ts
|
|
513
508
|
var searchSVideo = async (text, page = 1) => {
|
|
514
|
-
return await
|
|
509
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
515
510
|
`https://app.c.nf.migu.cn/bmw/hot-search/search/videos/v1.0?pageIndex=${page}&text=${text}`,
|
|
516
511
|
{
|
|
517
512
|
headers: {
|
|
518
|
-
"deviceid":
|
|
513
|
+
"deviceid": _chunkXQIVVOH2cjs.getDeviceId.call(void 0, )
|
|
519
514
|
}
|
|
520
515
|
}
|
|
521
516
|
);
|
|
@@ -523,30 +518,30 @@ var searchSVideo = async (text, page = 1) => {
|
|
|
523
518
|
|
|
524
519
|
// src/modules/svideo_searchSuggest.ts
|
|
525
520
|
var getSVideoSearchSuggest = async (text) => {
|
|
526
|
-
return await
|
|
521
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource-dataloader/search-suggest/search/v1.0?text=${text}`);
|
|
527
522
|
};
|
|
528
523
|
|
|
529
524
|
// src/modules/svideo_url.ts
|
|
530
525
|
var getSVideoUrl = async (contentIds, formatType = "HQ") => {
|
|
531
526
|
contentIds = contentIds.replace(/,/g, "|");
|
|
532
|
-
return await
|
|
527
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.vip.migu.cn/strategy/short-video/play/v1.0?contentIds=${contentIds}&formatType=${formatType}`);
|
|
533
528
|
};
|
|
534
529
|
|
|
535
530
|
// src/modules/svideo_userContent.ts
|
|
536
531
|
var getSVideoUserContent = async (videoUserId, nextPageId = "") => {
|
|
537
|
-
return await
|
|
532
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/user/i/user-content-list/v1.0?nextPageId=${nextPageId}&videoUserId=${videoUserId}`);
|
|
538
533
|
};
|
|
539
534
|
|
|
540
535
|
// src/modules/vrbt_opNum.ts
|
|
541
536
|
var getVrbtOpNum = async (contentIds) => {
|
|
542
|
-
return await
|
|
537
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/vrbt/opnum/v1.0?resourceType=M&contentIds=${contentIds}`);
|
|
543
538
|
};
|
|
544
539
|
|
|
545
540
|
// src/modules/vrbt_url.ts
|
|
546
541
|
var getVrbtUrl = async (contentIds) => {
|
|
547
542
|
contentIds = contentIds.replace(/,/g, "|");
|
|
548
|
-
return await
|
|
549
|
-
`https://app.c.
|
|
543
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
544
|
+
`https://app.c.vip.migu.cn/strategy/vrbt/play/v1.0?contentIds=${contentIds}`,
|
|
550
545
|
{
|
|
551
546
|
headers: {
|
|
552
547
|
"channel": "014X031"
|
|
@@ -556,12 +551,11 @@ var getVrbtUrl = async (contentIds) => {
|
|
|
556
551
|
};
|
|
557
552
|
|
|
558
553
|
// src/modules/lyric.ts
|
|
559
|
-
|
|
560
554
|
var getLyric = async (contentId, type = "lrc") => {
|
|
561
555
|
if (contentId === "") return { error: "contentId is empty!", success: false };
|
|
562
556
|
const types = type.split(",");
|
|
563
557
|
if (types.length === 0) return { error: "types is empty!", success: false };
|
|
564
|
-
const res = await
|
|
558
|
+
const res = await _chunkTVZESJ3Jcjs._fetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${contentId}&resourceType=2`);
|
|
565
559
|
const code = res.data.code.toString() || "";
|
|
566
560
|
const data = res.data.resource[0] || {};
|
|
567
561
|
if (code !== "000000") return {
|
|
@@ -569,12 +563,12 @@ var getLyric = async (contentId, type = "lrc") => {
|
|
|
569
563
|
status: res.status,
|
|
570
564
|
error: res.data.info || res.data
|
|
571
565
|
};
|
|
572
|
-
if (data.length === 0) return { error: "
|
|
566
|
+
if (res.data.resource.length === 0) return { error: "can not find resource!", success: false, data };
|
|
573
567
|
let lrc, lrcUrl, trc, trcUrl;
|
|
574
568
|
if (types.includes("lrc")) {
|
|
575
569
|
lrcUrl = data.lrcUrl || "";
|
|
576
570
|
if (lrcUrl !== "") {
|
|
577
|
-
const lrcRes = await
|
|
571
|
+
const lrcRes = await _chunkTVZESJ3Jcjs._fetch.call(void 0, lrcUrl);
|
|
578
572
|
if (lrcRes.status === 200) {
|
|
579
573
|
lrc = lrcRes.data || "";
|
|
580
574
|
}
|
|
@@ -583,7 +577,7 @@ var getLyric = async (contentId, type = "lrc") => {
|
|
|
583
577
|
if (types.includes("trc")) {
|
|
584
578
|
trcUrl = data.trcUrl || "";
|
|
585
579
|
if (trcUrl !== "") {
|
|
586
|
-
const trcRes = await
|
|
580
|
+
const trcRes = await _chunkTVZESJ3Jcjs._fetch.call(void 0, trcUrl);
|
|
587
581
|
if (trcRes.status === 200) {
|
|
588
582
|
trc = trcRes.data || "";
|
|
589
583
|
}
|
|
@@ -627,7 +621,7 @@ var addUserCollect = async (pacmtoken, type, contentId, title, userId) => {
|
|
|
627
621
|
} else {
|
|
628
622
|
return { success: false, err: "\u672A\u77E5type\u7C7B\u578B -playlist\u6216comment\u6216album" };
|
|
629
623
|
}
|
|
630
|
-
const { data, cookies } = await
|
|
624
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
|
|
631
625
|
`https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/add_collection.do`,
|
|
632
626
|
{ params: jsonParams, cookie: { pacmtoken } }
|
|
633
627
|
);
|
|
@@ -659,7 +653,7 @@ var removeUserCollect = async (pacmtoken, type, contentId, userId) => {
|
|
|
659
653
|
} else {
|
|
660
654
|
return { success: false, err: "\u672A\u77E5type\u7C7B\u578B -playlist,comment\u6216album" };
|
|
661
655
|
}
|
|
662
|
-
const { data, cookies } = await
|
|
656
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
|
|
663
657
|
`https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/del_collection.do`,
|
|
664
658
|
{ params: jsonParams, cookie: { pacmtoken } }
|
|
665
659
|
);
|
|
@@ -669,7 +663,7 @@ var removeUserCollect = async (pacmtoken, type, contentId, userId) => {
|
|
|
669
663
|
// src/modules/user_like_add.ts
|
|
670
664
|
var likeSong = async (pacmtoken, contentIds) => {
|
|
671
665
|
const contentIdsList = contentIds.split(",");
|
|
672
|
-
const { data, cookies } = await
|
|
666
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/api/add-music-list-song/v1.0`, {
|
|
673
667
|
method: "POST",
|
|
674
668
|
cookie: { pacmtoken },
|
|
675
669
|
body: JSON.stringify({
|
|
@@ -689,7 +683,7 @@ var dislikeSong = async (pacmtoken, contentId) => {
|
|
|
689
683
|
"contentId": contentId,
|
|
690
684
|
"songflag": "2"
|
|
691
685
|
};
|
|
692
|
-
const { data, cookies } = await
|
|
686
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
|
|
693
687
|
method: "POST",
|
|
694
688
|
cookie: { pacmtoken },
|
|
695
689
|
body: JSON.stringify(body),
|
|
@@ -708,7 +702,7 @@ var editUserMyList = async (pacmtoken, title, playlistId) => {
|
|
|
708
702
|
"id": playlistId,
|
|
709
703
|
"songflag": "0"
|
|
710
704
|
};
|
|
711
|
-
const { data, cookies } = await
|
|
705
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
|
|
712
706
|
method: "POST",
|
|
713
707
|
cookie: { pacmtoken },
|
|
714
708
|
body: JSON.stringify(body),
|
|
@@ -726,7 +720,7 @@ var addUserMyList = async (pacmtoken, title) => {
|
|
|
726
720
|
"channel": "23",
|
|
727
721
|
"type": "self_build"
|
|
728
722
|
};
|
|
729
|
-
const { data, cookies } = await
|
|
723
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/open/api/music-list/add/v2.0`, {
|
|
730
724
|
method: "POST",
|
|
731
725
|
cookie: { pacmtoken },
|
|
732
726
|
body: JSON.stringify(body),
|
|
@@ -739,7 +733,7 @@ var addUserMyList = async (pacmtoken, title) => {
|
|
|
739
733
|
|
|
740
734
|
// src/modules/user_myList_remove.ts
|
|
741
735
|
var removeUserMyList = async (pacmtoken, playlistId) => {
|
|
742
|
-
const { data, cookies } = await
|
|
736
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/user/deleteMusicList.do?channel=23&id=${playlistId}`, {
|
|
743
737
|
cookie: { pacmtoken }
|
|
744
738
|
});
|
|
745
739
|
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
@@ -747,22 +741,22 @@ var removeUserMyList = async (pacmtoken, playlistId) => {
|
|
|
747
741
|
|
|
748
742
|
// src/modules/radio_song.ts
|
|
749
743
|
var getRadioSong = async (radioId, page = 1) => {
|
|
750
|
-
return await
|
|
744
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/column/music-radio/scene/song/v3.0?remain=0&pageNo=${page}&actionId=1&radioId=${radioId}`);
|
|
751
745
|
};
|
|
752
746
|
|
|
753
747
|
// src/modules/column_newCD.ts
|
|
754
748
|
var getNewCDList = async () => {
|
|
755
|
-
return await
|
|
749
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/template/get-new-cd-list-header`);
|
|
756
750
|
};
|
|
757
751
|
|
|
758
752
|
// src/modules/column_newSong.ts
|
|
759
753
|
var getNewSongList = async () => {
|
|
760
|
-
return await
|
|
754
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/template/get-new-music-list-header`);
|
|
761
755
|
};
|
|
762
756
|
|
|
763
757
|
// src/modules/column_info.ts
|
|
764
758
|
var getColumnInfo = async (columnId) => {
|
|
765
|
-
return await
|
|
759
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/column/column-info/h5/v2.0?columnId=${columnId}`);
|
|
766
760
|
};
|
|
767
761
|
|
|
768
762
|
// src/modules/user_myList_song_add.ts
|
|
@@ -771,7 +765,7 @@ var addSongToMyList = async (pacmtoken, playlistId, contentIds) => {
|
|
|
771
765
|
"id": playlistId,
|
|
772
766
|
"contentIds": contentIds.split(",")
|
|
773
767
|
};
|
|
774
|
-
const { data, cookies } = await
|
|
768
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/api/add-music-list-song/v1.0`, {
|
|
775
769
|
method: "POST",
|
|
776
770
|
cookie: { pacmtoken },
|
|
777
771
|
body: JSON.stringify(body),
|
|
@@ -790,7 +784,7 @@ var removeSongFromMyList = async (pacmtoken, playlistId, contentId) => {
|
|
|
790
784
|
"contentId": contentId,
|
|
791
785
|
"id": playlistId
|
|
792
786
|
};
|
|
793
|
-
const { data, cookies } = await
|
|
787
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
|
|
794
788
|
method: "POST",
|
|
795
789
|
cookie: { pacmtoken },
|
|
796
790
|
body: JSON.stringify(body),
|
|
@@ -811,18 +805,18 @@ var getSVideoUserInfo = async (type, uid = "", videoUserId = "") => {
|
|
|
811
805
|
} else {
|
|
812
806
|
return { error: "Invalid parameter type", success: false };
|
|
813
807
|
}
|
|
814
|
-
return
|
|
808
|
+
return _chunkTVZESJ3Jcjs.h5fetch.call(void 0, url);
|
|
815
809
|
};
|
|
816
810
|
|
|
817
811
|
// src/modules/concert_info.ts
|
|
818
812
|
var getConcertInfo = async (concertId) => {
|
|
819
|
-
return await
|
|
813
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://c.musicapp.migu.cn/MIGUM2.0/v2.0/content/queryConcertSummary.do?columnId=${concertId}`);
|
|
820
814
|
};
|
|
821
815
|
|
|
822
816
|
// src/modules/concert_url.ts
|
|
823
817
|
var getConcertUrl = async (concertId, liveId, rateLevel = 1) => {
|
|
824
|
-
return await
|
|
825
|
-
`
|
|
818
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
819
|
+
`https://c.musicapp.migu.cn/MIGUM2.0/v2.1/danmaku/liveServerHosts.do?concertId=${concertId}&liveId=${liveId}&liveType=1&rateLevel=${rateLevel}`,
|
|
826
820
|
{
|
|
827
821
|
headers: {
|
|
828
822
|
"channel": "0146921"
|
|
@@ -834,50 +828,29 @@ var getConcertUrl = async (concertId, liveId, rateLevel = 1) => {
|
|
|
834
828
|
|
|
835
829
|
// src/modules/concert_detail.ts
|
|
836
830
|
var getConcertDetail = async (concertId) => {
|
|
837
|
-
return await
|
|
831
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/v1.0/template/concert-detail/release?columnId=${concertId}&templateVersion=10`);
|
|
838
832
|
};
|
|
839
833
|
|
|
840
834
|
// src/modules/concert_comment.ts
|
|
841
835
|
var getConcertComment = async (concertId, page = 1, size = 20) => {
|
|
842
|
-
return await
|
|
836
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://b.musicapp.migu.cn/MIGUM2.0/v1.0/danmaku/danmakuHisListPage.do?page=${page}&pageSize=${size}&resourceId=${concertId}`);
|
|
843
837
|
};
|
|
844
838
|
|
|
845
839
|
// src/modules/playlist_match.ts
|
|
846
840
|
var matchPlaylist = async (url) => {
|
|
847
841
|
url = encodeURIComponent(url);
|
|
848
|
-
return await
|
|
849
|
-
};
|
|
850
|
-
|
|
851
|
-
// src/modules/url_redirect.ts
|
|
852
|
-
|
|
853
|
-
var getRedirectUrl = async (contentId, toneFlag = "PQ", copyrightId, isVip = true) => {
|
|
854
|
-
if (isVip && (!copyrightId || copyrightId === "0")) return "";
|
|
855
|
-
return await _axios2.default.head(
|
|
856
|
-
isVip ? `https://c.musicapp.migu.cn/strategy/listen-song/v2.3` : `https://app.pd.nf.migu.cn/MIGUM2.0/v1.0/content/sub/listenSong.do`,
|
|
857
|
-
{
|
|
858
|
-
maxRedirects: 0,
|
|
859
|
-
params: {
|
|
860
|
-
"toneFlag": "PQ",
|
|
861
|
-
"copyrightId": copyrightId || "0",
|
|
862
|
-
"contentId": contentId,
|
|
863
|
-
"resourceType": "2",
|
|
864
|
-
"channel": "0146921"
|
|
865
|
-
},
|
|
866
|
-
headers: { "User-Agent": "okhttp/3.14.9" }
|
|
867
|
-
// !==null
|
|
868
|
-
}
|
|
869
|
-
).catch((err) => err.response).then((res) => _nullishCoalesce(_optionalChain([res, 'optionalAccess', _6 => _6.headers, 'optionalAccess', _7 => _7.location, 'optionalAccess', _8 => _8.split, 'call', _9 => _9("?"), 'access', _10 => _10[0]]), () => ( ""))).then((url) => _chunkILRMRBMKcjs.changeQuality.call(void 0, url, toneFlag, "PQ"));
|
|
842
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://c.musicapp.migu.cn/v1.0/content/get-import-songList?url=${url}`);
|
|
870
843
|
};
|
|
871
844
|
|
|
872
845
|
// src/modules/concert_mv.ts
|
|
873
846
|
var getConcertRecommendMv = async (concertId) => {
|
|
874
|
-
return await
|
|
847
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/v1.0/liveshow/query-mv-detail?concertId=${concertId}`);
|
|
875
848
|
};
|
|
876
849
|
|
|
877
|
-
// src/modules/
|
|
850
|
+
// src/modules/song_mv.ts
|
|
878
851
|
var getMvBySong = async (songId) => {
|
|
879
|
-
return await
|
|
880
|
-
`https://app.c.
|
|
852
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
853
|
+
`https://app.c.vip.migu.cn/MIGUM2.0/strategy/mv-player/video/v1.0?songId=${songId}`,
|
|
881
854
|
{
|
|
882
855
|
headers: {
|
|
883
856
|
"channel": "0146921"
|
|
@@ -898,7 +871,7 @@ var isFollowAuthor = async (pacmtoken, authorIds, authorType = "singer") => {
|
|
|
898
871
|
"authorType": authorType
|
|
899
872
|
};
|
|
900
873
|
});
|
|
901
|
-
const { data, cookies } = await
|
|
874
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
|
|
902
875
|
`https://app.u.nf.migu.cn/user/i/social/is-follow-subscribe/v1.0`,
|
|
903
876
|
{
|
|
904
877
|
method: "POST",
|
|
@@ -915,12 +888,12 @@ var isFollowAuthor = async (pacmtoken, authorIds, authorType = "singer") => {
|
|
|
915
888
|
|
|
916
889
|
// src/modules/playlist_vip.ts
|
|
917
890
|
var getVipPlaylist = async (size = 10) => {
|
|
918
|
-
return await
|
|
891
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/vip-exclusive/auditions-list/v1.0?pageSize=${size}`);
|
|
919
892
|
};
|
|
920
893
|
|
|
921
894
|
// src/modules/user_page_header.ts
|
|
922
895
|
var getUserHeader = async (userId) => {
|
|
923
|
-
return await
|
|
896
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
924
897
|
`https://app.c.nf.migu.cn/user/api/my-page-header/v1.0`,
|
|
925
898
|
{ params: { userId } }
|
|
926
899
|
);
|
|
@@ -931,7 +904,7 @@ var getUserSongPage = async (userId, videoUserId) => {
|
|
|
931
904
|
if (!userId && !videoUserId) {
|
|
932
905
|
return { data: { error: "userId or videoUserId is required" } };
|
|
933
906
|
}
|
|
934
|
-
return await
|
|
907
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
935
908
|
`https://app.c.nf.migu.cn/user/api/my-page-music/v1.0`,
|
|
936
909
|
{
|
|
937
910
|
params: { userId, videoUserId },
|
|
@@ -949,18 +922,18 @@ var getPageInfo = async (id, type) => {
|
|
|
949
922
|
return { success: false, data: { error: "choose pageId or sceneId to get page info" } };
|
|
950
923
|
}
|
|
951
924
|
const base = "https://app.c.nf.migu.cn/bmw", h = { headers: { recommendstatus: "1" } };
|
|
952
|
-
if (type === "pageId") return await
|
|
953
|
-
if (type === "sceneId") return await
|
|
925
|
+
if (type === "pageId") return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `${base}/page-info/v2.0?pageId=${id}`, h);
|
|
926
|
+
if (type === "sceneId") return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `${base}/page/view/v1.0?columnId=${id}`, h);
|
|
954
927
|
};
|
|
955
928
|
|
|
956
929
|
// src/modules/page_tab.ts
|
|
957
930
|
var getPageTab = async () => {
|
|
958
|
-
return await
|
|
931
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/music/nav-bar/v1.0`);
|
|
959
932
|
};
|
|
960
933
|
|
|
961
934
|
// src/modules/svideo_recommend.ts
|
|
962
935
|
var getSVideoRecommend = async (pacmtoken) => {
|
|
963
|
-
const { data, cookies } = await
|
|
936
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/resource-dataloader/recommend-video/v2.0", {
|
|
964
937
|
method: "GET",
|
|
965
938
|
cookie: { pacmtoken },
|
|
966
939
|
params: {
|
|
@@ -974,7 +947,7 @@ var getSVideoRecommend = async (pacmtoken) => {
|
|
|
974
947
|
|
|
975
948
|
// src/modules/follow_following_vra.ts
|
|
976
949
|
var getFollowingVra = async (userId, page = 1) => {
|
|
977
|
-
return await
|
|
950
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
978
951
|
`https://app.c.nf.migu.cn/bmw/page-data/vrbt/follow-videouserlist/v2.0`,
|
|
979
952
|
{ params: {
|
|
980
953
|
offset: page - 1,
|
|
@@ -986,7 +959,7 @@ var getFollowingVra = async (userId, page = 1) => {
|
|
|
986
959
|
|
|
987
960
|
// src/modules/follow_follower.ts
|
|
988
961
|
var getFollowerList = async (params) => {
|
|
989
|
-
if (params.type === "music") return await
|
|
962
|
+
if (params.type === "music") return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
990
963
|
`https://app.c.nf.migu.cn/MIGUM2.0/v1.0/user/follower.do`,
|
|
991
964
|
{ params: {
|
|
992
965
|
pageNo: params.page || 1,
|
|
@@ -999,7 +972,7 @@ var getFollowerList = async (params) => {
|
|
|
999
972
|
success: false,
|
|
1000
973
|
error: "userId or videoUserId is required"
|
|
1001
974
|
};
|
|
1002
|
-
return await
|
|
975
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
1003
976
|
`https://app.c.nf.migu.cn/user/i/social/fans-list/v1.0`,
|
|
1004
977
|
{ params: {
|
|
1005
978
|
userId: params.userId,
|
|
@@ -1013,7 +986,7 @@ var getFollowerList = async (params) => {
|
|
|
1013
986
|
var getFollowingList = async (userId, type, page = 1, size = 20) => {
|
|
1014
987
|
if (!userId) return { success: false, error: "userId is required" };
|
|
1015
988
|
if (type !== "user" && type !== "singer") return { success: false, error: "type is invalid" };
|
|
1016
|
-
return await
|
|
989
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
1017
990
|
`https://app.c.nf.migu.cn/MIGUM2.0/v1.0/user/followingSingers.do`,
|
|
1018
991
|
{ params: {
|
|
1019
992
|
"pageNo": page,
|
|
@@ -1026,7 +999,7 @@ var getFollowingList = async (userId, type, page = 1, size = 20) => {
|
|
|
1026
999
|
|
|
1027
1000
|
// src/modules/follow_add.ts
|
|
1028
1001
|
var addFollower = async (pacmtoken, singerId) => {
|
|
1029
|
-
const { data, cookies } = await
|
|
1002
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
|
|
1030
1003
|
`https://app.u.nf.migu.cn/user/social/api/add-follow/v1.0`,
|
|
1031
1004
|
{
|
|
1032
1005
|
params: {
|
|
@@ -1041,7 +1014,7 @@ var addFollower = async (pacmtoken, singerId) => {
|
|
|
1041
1014
|
|
|
1042
1015
|
// src/modules/follow_remove.ts
|
|
1043
1016
|
var removeFollower = async (pacmtoken, singerId) => {
|
|
1044
|
-
const { data, cookies } = await
|
|
1017
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
|
|
1045
1018
|
`https://app.u.nf.migu.cn/user/social/api/delete-follow/v1.0?followId=${singerId}`,
|
|
1046
1019
|
{ cookie: { pacmtoken } }
|
|
1047
1020
|
);
|
|
@@ -1050,7 +1023,7 @@ var removeFollower = async (pacmtoken, singerId) => {
|
|
|
1050
1023
|
|
|
1051
1024
|
// src/modules/passport_logout.ts
|
|
1052
1025
|
var logout = async (pacmtoken) => {
|
|
1053
|
-
const { data } = await
|
|
1026
|
+
const { data } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://c.musicapp.migu.cn/mgateway/api/clearPacMtoken`, {
|
|
1054
1027
|
cookie: { pacmtoken }
|
|
1055
1028
|
});
|
|
1056
1029
|
return data;
|
|
@@ -1058,7 +1031,7 @@ var logout = async (pacmtoken) => {
|
|
|
1058
1031
|
|
|
1059
1032
|
// src/modules/share_video.ts
|
|
1060
1033
|
var shareVideo = async (resourceType, contentId, userId) => {
|
|
1061
|
-
return await
|
|
1034
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
1062
1035
|
`https://app.c.nf.migu.cn/resource/share-info/v2.0`,
|
|
1063
1036
|
{ params: {
|
|
1064
1037
|
"appId": "music",
|
|
@@ -1071,7 +1044,7 @@ var shareVideo = async (resourceType, contentId, userId) => {
|
|
|
1071
1044
|
|
|
1072
1045
|
// src/modules/share_common.ts
|
|
1073
1046
|
var shareCommon = async (resourceType, contentId, contentName, targetUserName, copyrightId) => {
|
|
1074
|
-
return await
|
|
1047
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
1075
1048
|
`https://app.c.nf.migu.cn/MIGUM2.0/v1.0/content/shareInfo.do`,
|
|
1076
1049
|
{ params: {
|
|
1077
1050
|
"appId": "music",
|
|
@@ -1087,7 +1060,7 @@ var shareCommon = async (resourceType, contentId, contentName, targetUserName, c
|
|
|
1087
1060
|
|
|
1088
1061
|
// src/modules/user_audioBook.ts
|
|
1089
1062
|
var getUserAudioBook = async (pacmtoken, recentListenNum = 10, recommendNum = 5) => {
|
|
1090
|
-
const { data, cookies } = await
|
|
1063
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://pd.musicapp.migu.cn/bmw/audio-book/my-audio-book/v1.0", {
|
|
1091
1064
|
cookie: { pacmtoken },
|
|
1092
1065
|
headers: { "isMock": "00" },
|
|
1093
1066
|
params: {
|
|
@@ -1100,7 +1073,7 @@ var getUserAudioBook = async (pacmtoken, recentListenNum = 10, recommendNum = 5)
|
|
|
1100
1073
|
|
|
1101
1074
|
// src/modules/user_listenRank.ts
|
|
1102
1075
|
var getListenRank = async (pacmtoken, type) => {
|
|
1103
|
-
const { data, cookies } = await
|
|
1076
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/bmw/listen-song/ranking/v1.0`, {
|
|
1104
1077
|
method: "POST",
|
|
1105
1078
|
cookie: { pacmtoken },
|
|
1106
1079
|
body: JSON.stringify({ "type": type === "year" ? 2 : 1 }),
|
|
@@ -1111,7 +1084,7 @@ var getListenRank = async (pacmtoken, type) => {
|
|
|
1111
1084
|
|
|
1112
1085
|
// src/modules/cloud_url.ts
|
|
1113
1086
|
var getCloudUrl = async (pacmtoken, contentId, toneFlag = "PQ") => {
|
|
1114
|
-
const { data, cookies } = await
|
|
1087
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.vip.migu.cn/MIGUM3.0/strategy/cloud/listen-url/v1.0", {
|
|
1115
1088
|
cookie: { pacmtoken },
|
|
1116
1089
|
headers: { "channel": "0146931", "version": "7.41.13" },
|
|
1117
1090
|
params: {
|
|
@@ -1125,10 +1098,10 @@ var getCloudUrl = async (pacmtoken, contentId, toneFlag = "PQ") => {
|
|
|
1125
1098
|
|
|
1126
1099
|
// src/modules/url_dl_v1.ts
|
|
1127
1100
|
var getDLUrlV1 = async (songId, toneFlag = "PQ") => {
|
|
1128
|
-
return await
|
|
1129
|
-
`https://app.c.
|
|
1101
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
1102
|
+
`https://app.c.vip.migu.cn/MIGUM2.0/strategy/download-url/by-songid/v1.0`,
|
|
1130
1103
|
{
|
|
1131
|
-
headers: { "channel": "0146931", "version": "
|
|
1104
|
+
headers: { "channel": "0146931", "version": "8.8.0" },
|
|
1132
1105
|
params: {
|
|
1133
1106
|
"formatType": toneFlag,
|
|
1134
1107
|
songId
|
|
@@ -1137,47 +1110,12 @@ var getDLUrlV1 = async (songId, toneFlag = "PQ") => {
|
|
|
1137
1110
|
);
|
|
1138
1111
|
};
|
|
1139
1112
|
|
|
1140
|
-
// src/modules/url_m2.ts
|
|
1141
|
-
var getUrlM2 = async (contentId, toneFlag = "PQ", copyrightId, songId, albumId) => {
|
|
1142
|
-
const data = await _chunkZEGJU5LWcjs.h5fetch.call(void 0,
|
|
1143
|
-
`https://app.c.nf.migu.cn/MIGUM2.0/v2.1/content/listen-url`,
|
|
1144
|
-
{
|
|
1145
|
-
params: {
|
|
1146
|
-
"netType": "01",
|
|
1147
|
-
"resourceType": "2",
|
|
1148
|
-
contentId,
|
|
1149
|
-
"toneFlag": "PQ",
|
|
1150
|
-
// PQ 默认返回,覆盖处理
|
|
1151
|
-
"copyrightId": copyrightId || void 0,
|
|
1152
|
-
"albumId": albumId || void 0,
|
|
1153
|
-
"songId": songId || void 0
|
|
1154
|
-
},
|
|
1155
|
-
headers: { "channel": "0146832", "version": "7.41.13" }
|
|
1156
|
-
}
|
|
1157
|
-
);
|
|
1158
|
-
if (_optionalChain([data, 'optionalAccess', _11 => _11.data, 'optionalAccess', _12 => _12.url]) === "") {
|
|
1159
|
-
return { success: false, error: "URL \u4E3A\u7A7A" };
|
|
1160
|
-
}
|
|
1161
|
-
data.data.oriUrl = data.data.url || "";
|
|
1162
|
-
data.data.url = _chunkILRMRBMKcjs.changeQuality.call(void 0, data.data.url || "", toneFlag, "PQ", true);
|
|
1163
|
-
if (_optionalChain([data, 'optionalAccess', _13 => _13.data, 'optionalAccess', _14 => _14.songItem, 'optionalAccess', _15 => _15.z3dCode])) {
|
|
1164
|
-
const a = "ftp://218.200.160.122:21/", b = "https://freetyst.nf.migu.cn/";
|
|
1165
|
-
const z3dCode = data.data.songItem.z3dCode;
|
|
1166
|
-
z3dCode.url = encodeURI(_optionalChain([z3dCode, 'optionalAccess', _16 => _16.url, 'optionalAccess', _17 => _17.replace, 'call', _18 => _18(a, b)]) || "");
|
|
1167
|
-
z3dCode.iosUrl = encodeURI(_optionalChain([z3dCode, 'optionalAccess', _19 => _19.iosUrl, 'optionalAccess', _20 => _20.replace, 'call', _21 => _21(a, b)]) || "");
|
|
1168
|
-
z3dCode.androidUrl = encodeURI(_optionalChain([z3dCode, 'optionalAccess', _22 => _22.androidUrl, 'optionalAccess', _23 => _23.replace, 'call', _24 => _24(a, b)]) || "");
|
|
1169
|
-
z3dCode.h5Url = encodeURI(_optionalChain([z3dCode, 'optionalAccess', _25 => _25.h5Url, 'optionalAccess', _26 => _26.replace, 'call', _27 => _27(a, b)]) || "");
|
|
1170
|
-
data.data.songItem.z3dCode = z3dCode;
|
|
1171
|
-
}
|
|
1172
|
-
return data;
|
|
1173
|
-
};
|
|
1174
|
-
|
|
1175
1113
|
// src/modules/user_emoji_action.ts
|
|
1176
1114
|
var emojiAction = async (pacmtoken, contentId, emojiId, action) => {
|
|
1177
1115
|
if (action !== "add" && action !== "cancel") {
|
|
1178
1116
|
return { data: { success: false, error: "action\u5FC5\u987B\u662Fadd\u6216cancel" }, newPacmToken: "" };
|
|
1179
1117
|
}
|
|
1180
|
-
const { data, cookies } = await
|
|
1118
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/api/resource-react-emoji/add-cancel/v1.0`, {
|
|
1181
1119
|
method: "POST",
|
|
1182
1120
|
cookie: { pacmtoken },
|
|
1183
1121
|
body: JSON.stringify({
|
|
@@ -1202,7 +1140,7 @@ var getEmojiNum = async (pacmtoken, contentIds) => {
|
|
|
1202
1140
|
"resourceId": id,
|
|
1203
1141
|
"resourceType": "2"
|
|
1204
1142
|
}));
|
|
1205
|
-
const { data, cookies } = await
|
|
1143
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/api/resource-module/query/v1.0`, {
|
|
1206
1144
|
method: "POST",
|
|
1207
1145
|
cookie: pacmtoken ? { pacmtoken } : void 0,
|
|
1208
1146
|
body: JSON.stringify({ resourceModuleQueryParam }),
|
|
@@ -1214,7 +1152,7 @@ var getEmojiNum = async (pacmtoken, contentIds) => {
|
|
|
1214
1152
|
// src/modules/user_heartthrob.ts
|
|
1215
1153
|
var getUserHeartthrob = async (pacmtoken, songId) => {
|
|
1216
1154
|
if (!pacmtoken) return { data: { success: false, code: "290001", info: "\u8BF7\u5148\u767B\u5F55" }, newPacmToken: "" };
|
|
1217
|
-
const { data, cookies } = await
|
|
1155
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM3.0/resource-dataloader/recommend-song-listen/v1.0", {
|
|
1218
1156
|
cookie: { pacmtoken },
|
|
1219
1157
|
params: { "songId": songId }
|
|
1220
1158
|
});
|
|
@@ -1231,7 +1169,7 @@ var deleteCloudMusic = async (pacmtoken, contentIds) => {
|
|
|
1231
1169
|
"contentId": item,
|
|
1232
1170
|
"type": "0"
|
|
1233
1171
|
}));
|
|
1234
|
-
const { data, cookies } = await
|
|
1172
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/user/cloud/music/local/v1.0", {
|
|
1235
1173
|
method: "DELETE",
|
|
1236
1174
|
body: JSON.stringify(deleteSongInfos),
|
|
1237
1175
|
cookie: { pacmtoken },
|
|
@@ -1245,7 +1183,7 @@ var getInteractionMsg = async (pacmtoken, type, page = 1, size = 10) => {
|
|
|
1245
1183
|
if (!["fans", "collection"].includes(type)) {
|
|
1246
1184
|
return { data: { success: false, error: "type must be fans or collection" }, newPacmToken: void 0 };
|
|
1247
1185
|
}
|
|
1248
|
-
const { data, cookies } = await
|
|
1186
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v2.0/user/interaction.do`, {
|
|
1249
1187
|
cookie: { pacmtoken },
|
|
1250
1188
|
params: { "type": type === "fans" ? 2 : 1, pageNo: page, pageSize: size }
|
|
1251
1189
|
});
|
|
@@ -1254,7 +1192,7 @@ var getInteractionMsg = async (pacmtoken, type, page = 1, size = 10) => {
|
|
|
1254
1192
|
|
|
1255
1193
|
// src/modules/user_message_notice.ts
|
|
1256
1194
|
var getNoticeMsg = async (pacmtoken, page = 1, size = 10) => {
|
|
1257
|
-
const { data, cookies } = await
|
|
1195
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/notifies.do`, {
|
|
1258
1196
|
cookie: { pacmtoken },
|
|
1259
1197
|
params: { pageNo: page, pageSize: size }
|
|
1260
1198
|
});
|
|
@@ -1263,7 +1201,7 @@ var getNoticeMsg = async (pacmtoken, page = 1, size = 10) => {
|
|
|
1263
1201
|
|
|
1264
1202
|
// src/modules/user_message_thumbs.ts
|
|
1265
1203
|
var getThumbsMsg = async (pacmtoken, page = 1, size = 10) => {
|
|
1266
|
-
const { data, cookies } = await
|
|
1204
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/thumbsDetail.do`, {
|
|
1267
1205
|
cookie: { pacmtoken },
|
|
1268
1206
|
params: { pageNo: page, pageSize: size }
|
|
1269
1207
|
});
|
|
@@ -1271,23 +1209,30 @@ var getThumbsMsg = async (pacmtoken, page = 1, size = 10) => {
|
|
|
1271
1209
|
};
|
|
1272
1210
|
|
|
1273
1211
|
// src/modules/cloud_upload.ts
|
|
1274
|
-
var
|
|
1212
|
+
var _cryptojs = require('crypto-js'); var _cryptojs2 = _interopRequireDefault(_cryptojs);
|
|
1275
1213
|
function getExt(file) {
|
|
1276
1214
|
const index = file.name.lastIndexOf(".");
|
|
1277
1215
|
if (index <= 0) return "";
|
|
1278
1216
|
return file.name.substring(index + 1).toLowerCase();
|
|
1279
1217
|
}
|
|
1218
|
+
function toWordArray(bytes) {
|
|
1219
|
+
const words = [];
|
|
1220
|
+
for (let i = 0; i < bytes.length; i++) {
|
|
1221
|
+
words[i >>> 2] = (words[i >>> 2] || 0) | bytes[i] << 24 - i % 4 * 8;
|
|
1222
|
+
}
|
|
1223
|
+
return _cryptojs2.default.lib.WordArray.create(words, bytes.length);
|
|
1224
|
+
}
|
|
1280
1225
|
async function getHash(file) {
|
|
1281
|
-
const hash =
|
|
1226
|
+
const hash = _cryptojs2.default.algo.MD5.create();
|
|
1282
1227
|
const reader = file.stream().getReader();
|
|
1283
1228
|
while (true) {
|
|
1284
1229
|
const { done, value } = await reader.read();
|
|
1285
1230
|
if (done) {
|
|
1286
1231
|
break;
|
|
1287
1232
|
}
|
|
1288
|
-
hash.update(value);
|
|
1233
|
+
hash.update(toWordArray(value));
|
|
1289
1234
|
}
|
|
1290
|
-
return hash.
|
|
1235
|
+
return hash.finalize().toString(_cryptojs2.default.enc.Hex);
|
|
1291
1236
|
}
|
|
1292
1237
|
var getCloudUploadUrl = async (pacmtoken, file) => {
|
|
1293
1238
|
const ext = getExt(file);
|
|
@@ -1295,7 +1240,7 @@ var getCloudUploadUrl = async (pacmtoken, file) => {
|
|
|
1295
1240
|
return { data: { success: false, error: "file ext is not supported" }, newPacmToken: void 0 };
|
|
1296
1241
|
}
|
|
1297
1242
|
const hash = await getHash(file), size = file.size;
|
|
1298
|
-
const { data, cookies } = await
|
|
1243
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM3.0/user/cloud/meta/upload/v1.0", {
|
|
1299
1244
|
method: "POST",
|
|
1300
1245
|
body: JSON.stringify([{
|
|
1301
1246
|
"contentId": hash,
|
|
@@ -1310,12 +1255,12 @@ var getCloudUploadUrl = async (pacmtoken, file) => {
|
|
|
1310
1255
|
};
|
|
1311
1256
|
|
|
1312
1257
|
// src/modules/comment_delete.ts
|
|
1313
|
-
var deleteComment = async (pacmtoken,
|
|
1314
|
-
const { data, cookies } = await
|
|
1258
|
+
var deleteComment = async (pacmtoken, commentId) => {
|
|
1259
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
|
|
1315
1260
|
`https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/delComment.do`,
|
|
1316
1261
|
{
|
|
1317
1262
|
method: "GET",
|
|
1318
|
-
params: { resourceId, hasAudited: "false" },
|
|
1263
|
+
params: { resourceId: commentId, hasAudited: "false" },
|
|
1319
1264
|
cookie: { pacmtoken },
|
|
1320
1265
|
headers: {
|
|
1321
1266
|
"channel": "0146891",
|
|
@@ -1328,17 +1273,17 @@ var deleteComment = async (pacmtoken, resourceId) => {
|
|
|
1328
1273
|
|
|
1329
1274
|
// src/modules/singer_letter.ts
|
|
1330
1275
|
var getSingerLetter = async (singerId, pageId) => {
|
|
1331
|
-
return await
|
|
1276
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/user/blog/api/love-letter/query/v1.0?resourceId=${singerId}&nextPageId=${pageId}`);
|
|
1332
1277
|
};
|
|
1333
1278
|
|
|
1334
1279
|
// src/modules/singer_mv.ts
|
|
1335
1280
|
var getSingerMv = async (singerId, page) => {
|
|
1336
|
-
return await
|
|
1281
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/singer/video/v1.0?pageNo=${page || 1}&singerId=${singerId}`);
|
|
1337
1282
|
};
|
|
1338
1283
|
|
|
1339
1284
|
// src/modules/cloud_dl.ts
|
|
1340
1285
|
var getCloudDLUrl = async (pacmtoken, contentId, toneFlag = "PQ") => {
|
|
1341
|
-
const { data, cookies } = await
|
|
1286
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.vip.migu.cn/MIGUM3.0/strategy/cloud/download-url/v1.0", {
|
|
1342
1287
|
cookie: { pacmtoken },
|
|
1343
1288
|
headers: { "channel": "0146931", "version": "7.41.13" },
|
|
1344
1289
|
params: {
|
|
@@ -1352,7 +1297,7 @@ var getCloudDLUrl = async (pacmtoken, contentId, toneFlag = "PQ") => {
|
|
|
1352
1297
|
|
|
1353
1298
|
// src/modules/user_phoneInfo.ts
|
|
1354
1299
|
var getUserPhoneInfo = async (pacmtoken) => {
|
|
1355
|
-
const { data, cookies } = await
|
|
1300
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM2.0/v1.0/tone/isrbtuser.do", {
|
|
1356
1301
|
cookie: { pacmtoken },
|
|
1357
1302
|
headers: {
|
|
1358
1303
|
"channel": "0146921",
|
|
@@ -1364,7 +1309,7 @@ var getUserPhoneInfo = async (pacmtoken) => {
|
|
|
1364
1309
|
|
|
1365
1310
|
// src/modules/recommend_listenFreely_tab.ts
|
|
1366
1311
|
var getListenFreelyTab = async (pacmtoken = "") => {
|
|
1367
|
-
const { data, cookies } = await
|
|
1312
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/bmw/page/view/listen-freely/v1.0`, {
|
|
1368
1313
|
cookie: pacmtoken ? { pacmtoken } : void 0
|
|
1369
1314
|
});
|
|
1370
1315
|
return { data, newPacmToken: cookies.pacmtoken || void 0 };
|
|
@@ -1373,7 +1318,7 @@ var getListenFreelyTab = async (pacmtoken = "") => {
|
|
|
1373
1318
|
// src/modules/recommend_listenFreely.ts
|
|
1374
1319
|
var getListenFreelySongs = async (pacmtoken, modelId = "701000") => {
|
|
1375
1320
|
if (!pacmtoken) return { data: { success: false, code: "290001", info: "\u8BF7\u5148\u767B\u5F55" }, newPacmToken: void 0 };
|
|
1376
|
-
const { data, cookies } = await
|
|
1321
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/resource-dataloader/recommend/listen-freely/v2.0?modelId=${modelId}`, {
|
|
1377
1322
|
cookie: { pacmtoken }
|
|
1378
1323
|
});
|
|
1379
1324
|
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
@@ -1381,8 +1326,8 @@ var getListenFreelySongs = async (pacmtoken, modelId = "701000") => {
|
|
|
1381
1326
|
|
|
1382
1327
|
// src/modules/playlist_square_listByTag.ts
|
|
1383
1328
|
var getSquareListByTag = async (tagId, page) => {
|
|
1384
|
-
const res = await
|
|
1385
|
-
res.data.contentItemList = _optionalChain([res, 'optionalAccess',
|
|
1329
|
+
const res = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/v1.0/template/musiclistplaza-listbytag?templateVersion=1&tagId=${tagId}&pageNumber=${page}`);
|
|
1330
|
+
res.data.contentItemList = _optionalChain([res, 'optionalAccess', _20 => _20.data, 'optionalAccess', _21 => _21.contentItemList, 'optionalAccess', _22 => _22.itemList, 'optionalAccess', _23 => _23.reduce, 'call', _24 => _24((acc, item) => {
|
|
1386
1331
|
if (!item.actionUrl || !item.actionUrl.includes("song-list-info")) {
|
|
1387
1332
|
return acc;
|
|
1388
1333
|
}
|
|
@@ -1390,25 +1335,25 @@ var getSquareListByTag = async (tagId, page) => {
|
|
|
1390
1335
|
acc.push(item);
|
|
1391
1336
|
return acc;
|
|
1392
1337
|
}, [])]) || [];
|
|
1393
|
-
res.data.hasNext = res.data.contentItemList.length < 30 ? false : _optionalChain([res, 'optionalAccess',
|
|
1338
|
+
res.data.hasNext = res.data.contentItemList.length < 30 ? false : _optionalChain([res, 'optionalAccess', _25 => _25.data, 'optionalAccess', _26 => _26.nextPageUrl]) !== void 0 && _optionalChain([res, 'optionalAccess', _27 => _27.data, 'optionalAccess', _28 => _28.nextPageUrl]) !== "";
|
|
1394
1339
|
return res;
|
|
1395
1340
|
};
|
|
1396
1341
|
|
|
1397
1342
|
// src/modules/playlist_square_recommend.ts
|
|
1398
1343
|
var getSquareRecommend = async () => {
|
|
1399
|
-
return await
|
|
1344
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/playlist-square/recommend-playlist/v1.0?templateVersion=2`);
|
|
1400
1345
|
};
|
|
1401
1346
|
|
|
1402
1347
|
// src/modules/playlist_square_tag.ts
|
|
1403
1348
|
var getSquareTag = async (needMoreTag = true) => {
|
|
1404
|
-
const baseTag = await
|
|
1349
|
+
const baseTag = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/playlist-square/tab/v1.0`);
|
|
1405
1350
|
if (!needMoreTag) {
|
|
1406
1351
|
return baseTag;
|
|
1407
1352
|
}
|
|
1408
|
-
const moreTag = await
|
|
1353
|
+
const moreTag = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/template/musiclistplaza-taglist/release`);
|
|
1409
1354
|
baseTag.data.moreTag = moreTag.data.map((item) => {
|
|
1410
|
-
const title = _optionalChain([item, 'optionalAccess',
|
|
1411
|
-
const tagList = _optionalChain([item, 'optionalAccess',
|
|
1355
|
+
const title = _optionalChain([item, 'optionalAccess', _29 => _29.header, 'optionalAccess', _30 => _30.title]);
|
|
1356
|
+
const tagList = _optionalChain([item, 'optionalAccess', _31 => _31.content, 'access', _32 => _32.map, 'call', _33 => _33((it) => ({
|
|
1412
1357
|
tagName: it.texts[0],
|
|
1413
1358
|
tagId: it.texts[1]
|
|
1414
1359
|
}))]);
|
|
@@ -1417,16 +1362,20 @@ var getSquareTag = async (needMoreTag = true) => {
|
|
|
1417
1362
|
return baseTag;
|
|
1418
1363
|
};
|
|
1419
1364
|
|
|
1420
|
-
// src/modules/
|
|
1421
|
-
var
|
|
1365
|
+
// src/modules/song_info.ts
|
|
1366
|
+
var getSongInfoByContentIds = async (contentIds) => {
|
|
1422
1367
|
contentIds = contentIds.replace(/,/g, "|");
|
|
1423
|
-
return await
|
|
1368
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/song/by-contentids/v2.0?contentId=${contentIds}`);
|
|
1369
|
+
};
|
|
1370
|
+
var getSongInfoBySongIds = async (songId) => {
|
|
1371
|
+
songId = songId.replace(/,/g, "|");
|
|
1372
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/song/by-songids/v2.0?songId=${songId}`);
|
|
1424
1373
|
};
|
|
1425
1374
|
|
|
1426
1375
|
// src/modules/user_ordered.ts
|
|
1427
1376
|
var getUserOrdered = async (pacmtoken) => {
|
|
1428
1377
|
if (!pacmtoken) return { data: { success: false, code: "290001", info: "\u8BF7\u5148\u767B\u5F55" }, newPacmToken: void 0 };
|
|
1429
|
-
const { data, cookies } = await
|
|
1378
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.vip.migu.cn/MIGUM3.0/strategy/song-ordered/v2.0", {
|
|
1430
1379
|
cookie: { pacmtoken },
|
|
1431
1380
|
headers: { "channel": "014X031" }
|
|
1432
1381
|
});
|
|
@@ -1435,25 +1384,25 @@ var getUserOrdered = async (pacmtoken) => {
|
|
|
1435
1384
|
|
|
1436
1385
|
// src/modules/dalbum_info.ts
|
|
1437
1386
|
var getDAlbumInfo = async (dAlbumId) => {
|
|
1438
|
-
return await
|
|
1387
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/dalbum/v2.0?dAlbumId=${dAlbumId}`);
|
|
1439
1388
|
};
|
|
1440
1389
|
|
|
1441
1390
|
// src/modules/dalbum_song.ts
|
|
1442
1391
|
var getDAlbumSong = async (dAlbumId) => {
|
|
1443
|
-
return await
|
|
1392
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/dalbum/song/v2.0?dAlbumId=${dAlbumId}`);
|
|
1444
1393
|
};
|
|
1445
1394
|
|
|
1446
1395
|
// src/modules/dalbum_pay.ts
|
|
1447
1396
|
var getDAlbumPay = async (dAlbumId) => {
|
|
1448
|
-
return await
|
|
1449
|
-
`https://app.c.
|
|
1397
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
1398
|
+
`https://app.c.vip.migu.cn/MIGUM3.0/strategy/album-sub-rank/v1.0?queryType=01&resourceId=${dAlbumId}`,
|
|
1450
1399
|
{ headers: { "channel": "0146891" } }
|
|
1451
1400
|
);
|
|
1452
1401
|
};
|
|
1453
1402
|
|
|
1454
1403
|
// src/modules/page_scroll.ts
|
|
1455
1404
|
var getPageScroll = async (dataId, page = 1, size = 20, styleCode) => {
|
|
1456
|
-
return await
|
|
1405
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
1457
1406
|
`https://app.c.nf.migu.cn/bmw/page-view-datasource/v1.0`,
|
|
1458
1407
|
{
|
|
1459
1408
|
params: {
|
|
@@ -1468,7 +1417,7 @@ var getPageScroll = async (dataId, page = 1, size = 20, styleCode) => {
|
|
|
1468
1417
|
|
|
1469
1418
|
// src/modules/page_dataSource.ts
|
|
1470
1419
|
var getPageDataSource = async (body) => {
|
|
1471
|
-
return await
|
|
1420
|
+
return await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
1472
1421
|
`https://app.c.nf.migu.cn/bmw/page-datasource/v3.0`,
|
|
1473
1422
|
{
|
|
1474
1423
|
method: "POST",
|
|
@@ -1478,6 +1427,78 @@ var getPageDataSource = async (body) => {
|
|
|
1478
1427
|
);
|
|
1479
1428
|
};
|
|
1480
1429
|
|
|
1430
|
+
// src/modules/user_like_list.ts
|
|
1431
|
+
var getUserLikeList = async (playlistId, page, size, pacmtoken = "", userId = "") => {
|
|
1432
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/resource/h5/my/playlist/song/v1.0", {
|
|
1433
|
+
cookie: { pacmtoken: pacmtoken || "" },
|
|
1434
|
+
headers: { uid: userId || "" },
|
|
1435
|
+
params: {
|
|
1436
|
+
pageNo: page,
|
|
1437
|
+
pageSize: size,
|
|
1438
|
+
playlistId
|
|
1439
|
+
}
|
|
1440
|
+
});
|
|
1441
|
+
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1444
|
+
// src/modules/comment_epic_add.ts
|
|
1445
|
+
var addEpicComment = async (commentId, pacmtoken) => {
|
|
1446
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
|
|
1447
|
+
`https://app.c.nf.migu.cn/user/api/comment/add-recommend/v1.0`,
|
|
1448
|
+
{
|
|
1449
|
+
method: "POST",
|
|
1450
|
+
body: JSON.stringify({ commentId }),
|
|
1451
|
+
cookie: { pacmtoken },
|
|
1452
|
+
headers: {
|
|
1453
|
+
"channel": "0146891",
|
|
1454
|
+
"Content-Type": "application/json"
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
);
|
|
1458
|
+
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
1459
|
+
};
|
|
1460
|
+
|
|
1461
|
+
// src/modules/comment_epic_del.ts
|
|
1462
|
+
var deleteEpicComment = async (commentId, pacmtoken) => {
|
|
1463
|
+
const { data, cookies } = await _chunkTVZESJ3Jcjs.ckfetch.call(void 0,
|
|
1464
|
+
`https://app.c.nf.migu.cn/user/api/comment/cancel-recommend/v1.0`,
|
|
1465
|
+
{
|
|
1466
|
+
method: "POST",
|
|
1467
|
+
body: JSON.stringify({ commentId }),
|
|
1468
|
+
cookie: { pacmtoken },
|
|
1469
|
+
headers: {
|
|
1470
|
+
"channel": "0146891",
|
|
1471
|
+
"Content-Type": "application/json"
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
);
|
|
1475
|
+
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
1476
|
+
};
|
|
1477
|
+
|
|
1478
|
+
// src/modules/song_ids.ts
|
|
1479
|
+
var getSongIds = async (songId, channel = "014X031") => {
|
|
1480
|
+
const res = await _chunkTVZESJ3Jcjs.h5fetch.call(void 0,
|
|
1481
|
+
`https://app.c.vip.migu.cn/strategy/song-purchase/status/v1.0`,
|
|
1482
|
+
{
|
|
1483
|
+
params: { songId },
|
|
1484
|
+
headers: {
|
|
1485
|
+
"ua": "Android_migu",
|
|
1486
|
+
channel
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
);
|
|
1490
|
+
let actionUrl = res.data.actionUrl;
|
|
1491
|
+
if (!actionUrl)
|
|
1492
|
+
return res;
|
|
1493
|
+
actionUrl = actionUrl.split("?")[1].split("&").map((item) => item.split("="));
|
|
1494
|
+
res.data = { ...res.data, ...Object.fromEntries(actionUrl) };
|
|
1495
|
+
return res;
|
|
1496
|
+
};
|
|
1497
|
+
|
|
1498
|
+
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
|
|
1481
1502
|
|
|
1482
1503
|
|
|
1483
1504
|
|
|
@@ -1603,5 +1624,5 @@ var getPageDataSource = async (body) => {
|
|
|
1603
1624
|
|
|
1604
1625
|
|
|
1605
1626
|
|
|
1606
|
-
exports.addFollower = addFollower; exports.addSongToMyList = addSongToMyList; exports.addUserCollect = addUserCollect; exports.addUserMyList = addUserMyList; exports.checkCanListen = checkCanListen; exports.checkToken = checkToken; exports.deleteCloudMusic = deleteCloudMusic; exports.deleteComment = deleteComment; exports.dislikeSong = dislikeSong; exports.editUserMyList = editUserMyList; exports.emojiAction = emojiAction; exports.getAlbumInfo = getAlbumInfo; exports.getAlbumSong = getAlbumSong; exports.getCloudDLUrl = getCloudDLUrl; exports.getCloudUploadUrl = getCloudUploadUrl; exports.getCloudUrl = getCloudUrl; exports.getColumnInfo = getColumnInfo; exports.getComment = getComment; exports.getConcertComment = getConcertComment; exports.getConcertDetail = getConcertDetail; exports.getConcertInfo = getConcertInfo; exports.getConcertRecommendMv = getConcertRecommendMv; exports.getConcertUrl = getConcertUrl; exports.getDAlbumInfo = getDAlbumInfo; exports.getDAlbumPay = getDAlbumPay; exports.getDAlbumSong = getDAlbumSong; exports.getDLUrlV1 = getDLUrlV1; exports.getEmojiNum = getEmojiNum; exports.getFollowerList = getFollowerList; exports.getFollowingList = getFollowingList; exports.getFollowingVra = getFollowingVra; exports.getInteractionMsg = getInteractionMsg; exports.getListenFreelySongs = getListenFreelySongs; exports.getListenFreelyTab = getListenFreelyTab; exports.getListenRank = getListenRank; exports.getLyric = getLyric; exports.getMVRecommend = getMVRecommend; exports.getMvBySong = getMvBySong; exports.getMvHls = getMvHls; exports.getMvInfo = getMvInfo; exports.getNewCDList = getNewCDList; exports.getNewSongList = getNewSongList; exports.getNoticeMsg = getNoticeMsg; exports.getOpNum = getOpNum; exports.getPacmToken = getPacmToken; exports.getPageDataSource = getPageDataSource; exports.getPageInfo = getPageInfo; exports.getPageScroll = getPageScroll; exports.getPageTab = getPageTab; exports.getPlaylistInfo = getPlaylistInfo; exports.getPlaylistSong = getPlaylistSong; exports.getRadioRecommend = getRadioRecommend; exports.getRadioRecommendAll = getRadioRecommendAll; exports.getRadioSong = getRadioSong; exports.getRankIndex = getRankIndex; exports.getRankInfo = getRankInfo; exports.getRecommendPlaylist = getRecommendPlaylist; exports.
|
|
1627
|
+
exports.addEpicComment = addEpicComment; exports.addFollower = addFollower; exports.addSongToMyList = addSongToMyList; exports.addUserCollect = addUserCollect; exports.addUserMyList = addUserMyList; exports.checkCanListen = checkCanListen; exports.checkToken = checkToken; exports.deleteCloudMusic = deleteCloudMusic; exports.deleteComment = deleteComment; exports.deleteEpicComment = deleteEpicComment; exports.dislikeSong = dislikeSong; exports.editUserMyList = editUserMyList; exports.emojiAction = emojiAction; exports.getAlbumInfo = getAlbumInfo; exports.getAlbumSong = getAlbumSong; exports.getCloudDLUrl = getCloudDLUrl; exports.getCloudUploadUrl = getCloudUploadUrl; exports.getCloudUrl = getCloudUrl; exports.getColumnInfo = getColumnInfo; exports.getComment = getComment; exports.getConcertComment = getConcertComment; exports.getConcertDetail = getConcertDetail; exports.getConcertInfo = getConcertInfo; exports.getConcertRecommendMv = getConcertRecommendMv; exports.getConcertUrl = getConcertUrl; exports.getDAlbumInfo = getDAlbumInfo; exports.getDAlbumPay = getDAlbumPay; exports.getDAlbumSong = getDAlbumSong; exports.getDLUrlV1 = getDLUrlV1; exports.getEmojiNum = getEmojiNum; exports.getFollowerList = getFollowerList; exports.getFollowingList = getFollowingList; exports.getFollowingVra = getFollowingVra; exports.getInteractionMsg = getInteractionMsg; exports.getListenFreelySongs = getListenFreelySongs; exports.getListenFreelyTab = getListenFreelyTab; exports.getListenRank = getListenRank; exports.getLyric = getLyric; exports.getMVRecommend = getMVRecommend; exports.getMvBySong = getMvBySong; exports.getMvHls = getMvHls; exports.getMvInfo = getMvInfo; exports.getNewCDList = getNewCDList; exports.getNewSongList = getNewSongList; exports.getNoticeMsg = getNoticeMsg; exports.getOpNum = getOpNum; exports.getPacmToken = getPacmToken; exports.getPageDataSource = getPageDataSource; exports.getPageInfo = getPageInfo; exports.getPageScroll = getPageScroll; exports.getPageTab = getPageTab; exports.getPlaylistInfo = getPlaylistInfo; exports.getPlaylistSong = getPlaylistSong; exports.getRadioRecommend = getRadioRecommend; exports.getRadioRecommendAll = getRadioRecommendAll; exports.getRadioSong = getRadioSong; exports.getRankIndex = getRankIndex; exports.getRankInfo = getRankInfo; exports.getRecommendPlaylist = getRecommendPlaylist; exports.getResourceInfo = getResourceInfo; exports.getSVideoInfo = getSVideoInfo; exports.getSVideoRecommend = getSVideoRecommend; exports.getSVideoSearchSuggest = getSVideoSearchSuggest; exports.getSVideoUrl = getSVideoUrl; exports.getSVideoUserContent = getSVideoUserContent; exports.getSVideoUserInfo = getSVideoUserInfo; exports.getSceneRecommend = getSceneRecommend; exports.getSearchDefault = getSearchDefault; exports.getSearchHot = getSearchHot; exports.getSearchSingerTab = getSearchSingerTab; exports.getSearchSingerTabList = getSearchSingerTabList; exports.getSimilarSongRecommend = getSimilarSongRecommend; exports.getSingerAlbum = getSingerAlbum; exports.getSingerIndex = getSingerIndex; exports.getSingerLetter = getSingerLetter; exports.getSingerMv = getSingerMv; exports.getSingerSimilar = getSingerSimilar; exports.getSingerSong = getSingerSong; exports.getSongIds = getSongIds; exports.getSongInfoByContentIds = getSongInfoByContentIds; exports.getSongInfoBySongIds = getSongInfoBySongIds; exports.getSquareListByTag = getSquareListByTag; exports.getSquarePage = getSquarePage; exports.getSquareRecommend = getSquareRecommend; exports.getSquareTag = getSquareTag; exports.getThumbsMsg = getThumbsMsg; exports.getTicketInfo = getTicketInfo; exports.getTodayRecommend = getTodayRecommend; exports.getUrlH5V24 = getUrlH5V24; exports.getUrlV1 = getUrlV1; exports.getUrlV2 = getUrlV2; exports.getUserAudioBook = getUserAudioBook; exports.getUserBadge = getUserBadge; exports.getUserCollectList = getUserCollectList; exports.getUserHeader = getUserHeader; exports.getUserHeartthrob = getUserHeartthrob; exports.getUserHomePage = getUserHomePage; exports.getUserLikeList = getUserLikeList; exports.getUserMyList = getUserMyList; exports.getUserOrdered = getUserOrdered; exports.getUserPhoneInfo = getUserPhoneInfo; exports.getUserSongPage = getUserSongPage; exports.getVersion = getVersion; exports.getVipPlaylist = getVipPlaylist; exports.getVrbtOpNum = getVrbtOpNum; exports.getVrbtUrl = getVrbtUrl; exports.isFollowAuthor = isFollowAuthor; exports.likeSong = likeSong; exports.logout = logout; exports.matchPlaylist = matchPlaylist; exports.queryUserInfo = queryUserInfo; exports.removeFollower = removeFollower; exports.removeSongFromMyList = removeSongFromMyList; exports.removeUserCollect = removeUserCollect; exports.removeUserMyList = removeUserMyList; exports.searchAlbum = searchAlbum; exports.searchConcert = searchConcert; exports.searchCrbt = searchCrbt; exports.searchLrc = searchLrc; exports.searchMv = searchMv; exports.searchPlaylist = searchPlaylist; exports.searchSVideo = searchSVideo; exports.searchSinger = searchSinger; exports.searchSong = searchSong; exports.searchSuggest = searchSuggest; exports.searchTicket = searchTicket; exports.searchVrbt = searchVrbt; exports.shareCommon = shareCommon; exports.shareVideo = shareVideo;
|
|
1607
1628
|
//# sourceMappingURL=index.cjs.map
|