Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

默认搜索关键词、单独的歌单名,描述,标签更新 #547

Merged
merged 1 commit into from
Jul 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions module/playlist_desc_update.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// 更新歌单描述

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'
}
)
}
17 changes: 17 additions & 0 deletions module/playlist_name_update.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// 更新歌单名

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'
}
)
}
17 changes: 17 additions & 0 deletions module/playlist_tags_update.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// 更新歌单标签

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'
}
)
}
14 changes: 14 additions & 0 deletions module/search_default.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// 默认搜索关键词

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'
}
)
}