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
+4
View File
@@ -30,6 +30,10 @@ interface API {
lxMusicHttpCancel: (requestId: string) => Promise<void>;
/** 扫描指定文件夹中的本地音乐文件 */
scanLocalMusic: (folderPath: string) => Promise<{ files: string[]; count: number }>;
/** 扫描指定文件夹中的本地音乐文件(包含修改时间) */
scanLocalMusicWithStats: (
folderPath: string
) => Promise<{ files: { path: string; modifiedTime: number }[]; count: number }>;
/** 批量解析本地音乐文件元数据 */
parseLocalMusicMetadata: (
filePaths: string[]