forked from miao-moe/QZMusic_PC
feat:
- 搜索页UI - 插件系统支持搜索单曲接口 - 修复音量初始化和状态 - 搜索关键词匹配优化
This commit is contained in:
@@ -92,6 +92,8 @@ ipcMain.handle(
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
// Cache IPC Handlers
|
||||
ipcMain.handle('cache:getInfo', () => {
|
||||
const settings = loadSettings();
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user