This commit is contained in:
binaryify
2020-06-10 23:21:26 +08:00
parent 20cba0aa15
commit 494a33c385
14 changed files with 905 additions and 19 deletions
-1
View File
@@ -7,7 +7,6 @@ module.exports = (query, request) => {
offset: query.offset || 0,
asc: toBoolean(query.asc)
}
console.log(toBoolean(query.asc))
return request(
'POST',
`https://music.163.com/weapi/dj/program/byradio`,
-1
View File
@@ -7,7 +7,6 @@ module.exports = (query, request) => {
op: 'update',
}
console.log(data)
return request(
'POST', `http://interface.music.163.com/api/playlist/manipulate/tracks`, data,
{
+1 -1
View File
@@ -2,7 +2,7 @@
module.exports = (query, request) => {
const data = {
type: 1,
type: query.type || 1,
limit: 100,
offset: 0,
total: true
+18
View File
@@ -0,0 +1,18 @@
module.exports = (query, request) => {
const data = {
offset: query.offset || 0,
total: 'true',
limit: query.limit || 99,
};
return request(
'POST',
`https://music.163.com/api/cloudvideo/category/list`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy
}
);
};
+3 -5
View File
@@ -1,14 +1,12 @@
// 视频链接
module.exports = (query, request) => {
const data = {
groupId: query.id,
offset: query.offset || 0,
needUrl: true,
resolution: query.res || 1080
need_preview_url: 'true',
total: true
}
return request(
'POST', `https://music.163.com/weapi/videotimeline/videogroup/get`, data, {
'POST', `https://music.163.com/api/videotimeline/videogroup/otherclient/get`, data, {
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy
+17
View File
@@ -0,0 +1,17 @@
module.exports = (query, request) => {
const data = {
groupId: 0,
offset: query.offset || 0,
need_preview_url: 'true',
total: true
}
console.log({data})
// /api/videotimeline/otherclient/get
return request(
'POST', `https://music.163.com/api/videotimeline/otherclient/get`, data, {
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy
}
)
}
+20
View File
@@ -0,0 +1,20 @@
module.exports = (query, request) => {
const data = {
offset: query.offset || 0,
filterLives: '[]',
withProgramInfo: 'true',
needUrl: '1',
resolution: '480'
};
return request(
'POST',
`https://music.163.com/api/videotimeline/get`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy
}
);
};