hanxi / xiaomusic

使用小爱音箱播放音乐,音乐使用 yt-dlp 下载。
https://github.com/hanxi/xiaomusic
MIT License
1.71k stars 181 forks source link

增加 tag 缓存 #193

Closed flymin closed 2 weeks ago

flymin commented 2 weeks ago

关联 issue:#190

config 增加了 tag_cache_dir,默认为 null,为 cache 路径名 如果不为 null 会自动创建文件夹,把 cache 存在 ${tag_cache_dir}/tag_cache.json;如果为 null 则不使用 cache

breaking change: 有些 tag value 的数据类型 json 不支持,现在强制转成了 string

待实现: 前端调用 refresh_music_tag 来强制刷新 tag cache(拜托作者实现了)