提交 97464055 编写于 作者: B binaryify 提交者: GitHub

Merge pull request #547 from kurodaakira-jp/master

默认搜索关键词、单独的歌单名,描述,标签更新
// 更新歌单描述
module.exports = (query, request) => {
const data = {
id: query.id,
desc: query.desc
}
return request(
'POST', `http://interface3.music.163.com/eapi/playlist/desc/update`, data,
{
crypto: 'eapi',
cookie: query.cookie,
proxy: query.proxy,
url: '/api/playlist/desc/update'
}
)
}
\ No newline at end of file
// 更新歌单名
module.exports = (query, request) => {
const data = {
id: query.id,
name: query.name
}
return request(
'POST', `http://interface3.music.163.com/eapi/playlist/update/name`, data,
{
crypto: 'eapi',
cookie: query.cookie,
proxy: query.proxy,
url: '/api/playlist/update/name'
}
)
}
\ No newline at end of file
// 更新歌单标签
module.exports = (query, request) => {
const data = {
id: query.id,
tags: query.tags
}
return request(
'POST', `http://interface3.music.163.com/eapi/playlist/tags/update`, data,
{
crypto: 'eapi',
cookie: query.cookie,
proxy: query.proxy,
url: '/api/playlist/tags/update'
}
)
}
\ No newline at end of file
// 默认搜索关键词
module.exports = (query, request) => {
return request(
'POST', `http://interface3.music.163.com/eapi/search/defaultkeyword/get`, {},
{
crypto: 'eapi',
cookie: query.cookie,
proxy: query.proxy,
url: '/api/search/defaultkeyword/get'
}
)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册