Skip to content

Nion 0.9.3

Latest

Choose a tag to compare

@Echoer009 Echoer009 released this 13 Oct 13:29

新功能

  • 封面缓存全面翻新:封面按服务器原始字节落盘(不再二次压缩掉画质)、原子写入、真 LRU 淘汰,同一张封面并发加载只下载一次。

修复

  • 打开专辑 / 点歌展开播放页时大封面先闪占位图:列表、详情、播放页的封面尺寸(150/300/600px)缓存互不命中,大封面首帧现在直接用已缓存的其它尺寸过渡、高清版到手后无缝替换;播放页背景首帧即为歌曲颜色;专辑详情加载曲目时不再整页转圈,头部大封面照常显示。
  • 切歌后迷你播放条封面不更新:CoverArt 换封面来源后仍显示上一首的图,现已当帧重置;首次加载的 150ms 淡入动画也真正生效。
  • 歌单封面永不更新:改用服务器下发的 coverArt 令牌(pl-<id>_<内容哈希>,歌单内容变化即变化);空歌单不再请求封面、直接显示占位块。
  • 服务器占位图被永久缓存:遵守 Cache-Control: no-store(Navidrome 封面缺失时的临时占位图不再落盘),并按请求尺寸降采样解码,不再把 1024px 占位图全尺寸读进内存。
  • 打开歌单闪旧内容:openPlaylist 的 JSON 缓存键补上服务器/账号前缀,与预取和编辑后的缓存失效对齐;增删曲目后不再先闪旧曲目列表与旧首曲封面。
  • 磁盘缓存可靠性:写入中断不再留下"下半截灰"的坏图;读命中保活常用封面;缓存 key 增加服务器段,多服务器不串台(旧 covers 目录自动清理,升级后封面会重新下载一次)。
  • 移除键值永错的 prewarmBackdrop:此前每次切歌都在后台多下载一张永远用不上的封面。

New Features

  • Cover art cache overhaul: covers are now cached as original bytes from the server (no lossy re-encoding), written atomically, evicted by true LRU, and concurrent loads of the same cover download it only once.

Fixes

  • Big cover flashed a placeholder when opening an album or expanding the player: list, detail and player covers use different sizes (150/300/600px) that never hit each other's cache; the big cover now shows an already-cached size on the first frame and swaps to the sharp version seamlessly; the player background is the song color from the first frame; album detail no longer replaces the whole page with a spinner while loading tracks.
  • Mini player cover no longer sticks after skipping tracks: CoverArt now resets immediately when the cover source changes; the 150ms fade-in on first load actually works now.
  • Playlist covers never updated: the app now uses the server-issued coverArt token (pl-<id>_<hash>, changes whenever playlist content changes); empty playlists no longer request a cover and show the placeholder block directly.
  • Server placeholder images were cached forever: Cache-Control: no-store is now honored (Navidrome's temporary placeholder for missing art is never persisted), and images are decoded downsampled to the requested size instead of loading 1024px placeholders at full size.
  • Stale flash when opening a playlist: the playlist-detail JSON cache key now carries the server/account prefix, matching prefetch and post-edit invalidation, so removed tracks no longer flash back.
  • Disk cache reliability: interrupted writes no longer leave half-gray broken images; cache hits keep hot covers alive; cache keys include the server so multiple servers don't cross-contaminate (the old covers directory is cleaned up automatically — covers re-download once after updating).
  • Removed prewarmBackdrop, whose cache key could never be read back — it silently downloaded one extra cover on every track change.