- 搜索页UI
- 插件系统支持搜索单曲接口
- 修复音量初始化和状态
- 搜索关键词匹配优化
This commit is contained in:
lqtmcstudio
2026-02-05 23:44:51 +08:00
parent 719cacef11
commit 21b80c566b
16 changed files with 610 additions and 8 deletions

View File

@@ -92,6 +92,8 @@ ipcMain.handle(
}
)
// Cache IPC Handlers
ipcMain.handle('cache:getInfo', () => {
const settings = loadSettings();

View File

@@ -21,7 +21,8 @@ contextBridge.exposeInMainWorld('electronAPI', {
// Plugin System
plugin: {
call: (pluginId: string, method: string, args: any[]) => ipcRenderer.invoke('plugin:call', pluginId, method, args)
call: (pluginId: string, method: string, args: any[]) => ipcRenderer.invoke('plugin:call', pluginId, method, args),
search: (pluginId: string, query: string, page: number, limit: number) => ipcRenderer.invoke('plugin:call', pluginId, 'search', [query, page, limit]),
},
// Cache Control

View File

@@ -69,6 +69,7 @@ export class QzpController extends EventEmitter {
this.send(['observe_property', 3, 'duration']);
this.send(['observe_property', 4, 'idle-active']);
this.send(['observe_property', 5, 'eof-reached']);
this.send(['set_property', 'volume', 50])
});
this.socket.on('data', (data) => {