音乐模块调整
This commit is contained in:
1 parent
4f574cb5fa
commit
8f853f7ef3
31 files changed
+3819
-936
No files matched your search
@@ -34,6 +34,13 @@ impl CacheManager {
|
||||
Self { root, index_path }
|
||||
}
|
||||
|
||||
/// 本地曲库标签缓存文件:{cache_root}/local-tags.json。
|
||||
/// 记录 path -> {size, mtim, 标签},扫描时未变化的文件直接复用,
|
||||
/// 避免万级曲库每次都重新解析音频标签。
|
||||
pub fn local_tags_path(&self) -> PathBuf {
|
||||
self.root.join("local-tags.json")
|
||||
}
|
||||
|
||||
fn load_index(&self) -> HashMap<String, CacheEntry> {
|
||||
fs::read_to_string(&self.index_path)
|
||||
.ok()
|
||||
|
||||
Reference in new issue
Block a user