MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / parseQuery

Method parseQuery

music/music.ts:2317–2360  ·  view source on GitHub ↗
(query: string)

Source from the content-addressed store, hash-verified

2315 title: "音乐搜索",
2316 description: "音乐搜索配置:默认音源、音质、搜索结果数",
2317 category: "插件配置",
2318 icon: "🎵",
2319 getSchema: (): PanelSettingField[] => [
2320 {
2321 "key": "defaultSource",
2322 "label": "默认音源",
2323 "type": "select",
2324 "options": [
2325 {
2326 "value": "auto",
2327 "label": "自动"
2328 },
2329 {
2330 "value": "qq",
2331 "label": "QQ音乐"
2332 },
2333 {
2334 "value": "netease",
2335 "label": "网易云"
2336 }
2337 ],
2338 "description": "默认搜索的音源"
2339 },
2340 {
2341 "key": "br",
2342 "label": "音质",
2343 "type": "select",
2344 "options": [
2345 { "value": "128", "label": "128kbps (低)" },
2346 { "value": "320", "label": "320kbps (标准)" },
2347 { "value": "999", "label": "无损/最高" }
2348 ],
2349 "default": "999",
2350 "description": "音频比特率"
2351 },
2352 {
2353 "key": "maxResults",
2354 "label": "最大搜索结果",
2355 "type": "number",
2356 "min": 10,
2357 "max": 100,
2358 "default": 30,
2359 "description": "单次搜索返回的最大结果数"
2360 },
2361 {
2362 "key": "maxUploadBytes",
2363 "label": "最大上传大小 (字节)",

Callers 1

handleDownloadMethod · 0.95

Calls 3

searchMusicMethod · 0.95
extractSongInfoFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected