fix: revert to nested pluginInfo format matching QZv2 (pluginInfo contains info/ext/env/quality/supportFunc)
This commit is contained in:
@@ -284,8 +284,14 @@ function album() {
|
||||
}
|
||||
|
||||
// ===== 插件信息 =====
|
||||
module.exports = {
|
||||
info: { id: 'koneko_ceru_tx', name: 'QQ音乐 - Koneko 聆澜', version: '0.0.3', source: 'tx', description: 'QQ音乐音源,基于 CeruMusic musicSdk 搜索 + Ceru 播放接口' },
|
||||
var pluginInfo = {
|
||||
info: {
|
||||
id: 'koneko_ceru_tx',
|
||||
name: 'QQ音乐 - Koneko 聆澜',
|
||||
version: '0.0.3',
|
||||
source: 'tx',
|
||||
description: 'QQ音乐音源,基于 CeruMusic musicSdk 搜索 + Ceru 播放接口'
|
||||
},
|
||||
ext: [],
|
||||
env: [{ key: 'ceru_key', name: 'Ceru API Key', description: '聆澜播放接口密钥' }],
|
||||
quality: [
|
||||
@@ -293,17 +299,21 @@ module.exports = {
|
||||
{ name: '高品', ui: 'HQ', id: '320k' },
|
||||
{ name: '无损', ui: 'SQ', id: 'flac' }
|
||||
],
|
||||
supportFunc: ['musicSearch', 'tipSearch', 'hotSearch', 'leaderboard', 'songList', 'singer', 'album', 'getLyric', 'getPic', 'getUrl', 'musicDetail', 'musicInfo'],
|
||||
supportFunc: []
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
musicSearch: { search: search },
|
||||
tipSearch: { search: tipSearch },
|
||||
hotSearch: { getList: hotSearch },
|
||||
leaderboard: { getBoards: leaderboard },
|
||||
songList: { search: songList, getTags: function() { return Promise.resolve({ tags: [], hotTag: [], source: 'tx' }); }, getList: songList },
|
||||
singer: { getInfo: singer, getSongList: singer, getAlbumList: singer },
|
||||
album: { getInfo: album, getSongList: album },
|
||||
songList: songList,
|
||||
singer: singer,
|
||||
album: album,
|
||||
getLyric: getLyric,
|
||||
getPic: getPic,
|
||||
getUrl: getUrl,
|
||||
musicDetail: musicDetail,
|
||||
musicInfo: musicInfo
|
||||
musicInfo: musicInfo,
|
||||
pluginInfo: pluginInfo
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user