fix: revert to nested pluginInfo format matching QZv2 (pluginInfo contains info/ext/env/quality/supportFunc)

This commit is contained in:
TRAE Bot
2026-07-05 10:51:00 +00:00
parent e39af3c428
commit ed7d4b356b
6 changed files with 102 additions and 42 deletions

View File

@@ -163,8 +163,14 @@ function singer() { return Promise.resolve({ source: 'kw', list: [], total: 0 })
function album() { return Promise.resolve({ source: 'kw', list: [], total: 0 }); }
// ===== 插件信息 =====
module.exports = {
info: { id: 'koneko_ceru_kw', name: '酷我音乐 - Koneko 聆澜', version: '0.0.3', source: 'kw', description: '酷我音乐音源,基于 CeruMusic musicSdk 搜索 + Ceru 播放接口' },
var pluginInfo = {
info: {
id: 'koneko_ceru_kw',
name: '酷我音乐 - Koneko 聆澜',
version: '0.0.3',
source: 'kw',
description: '酷我音乐音源,基于 CeruMusic musicSdk 搜索 + Ceru 播放接口'
},
ext: [],
env: [{ key: 'ceru_key', name: 'Ceru API Key', description: '聆澜播放接口密钥' }],
quality: [
@@ -172,17 +178,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: 'kw' }); }, 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
};