fix(本地音乐): 扫描阶段直接使用mtime做增量判断

This commit is contained in:
alger
2026-03-04 20:59:34 +08:00
parent 92877d86e9
commit c714860c96
5 changed files with 98 additions and 41 deletions
+3
View File
@@ -54,6 +54,7 @@ const api = {
'cache-lyric',
'clear-lyric-cache',
'scan-local-music',
'scan-local-music-with-stats',
'parse-local-music-metadata'
];
if (validChannels.includes(channel)) {
@@ -72,6 +73,8 @@ const api = {
// 本地音乐扫描相关
scanLocalMusic: (folderPath: string) => ipcRenderer.invoke('scan-local-music', folderPath),
scanLocalMusicWithStats: (folderPath: string) =>
ipcRenderer.invoke('scan-local-music-with-stats', folderPath),
parseLocalMusicMetadata: (filePaths: string[]) =>
ipcRenderer.invoke('parse-local-music-metadata', filePaths)
};