mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
A source without a modification time always published its preview to v2_<path hash>_0.jpg. After an in-app cover edit (invalidate, then extract again) the new cover landed on the same path, so ImageCache kept showing the old decoded cover in the metadata screen, Library and player. Untimed previews are now named v2_<path hash>_0_<content hash>.jpg from a SHA-256 of the extracted bytes: an unchanged cover keeps its path across memory misses, an edited one gets a new path, and the existing variant cleanup removes the previous file. Publishing also no longer deletes the target before the rename, which already replaces it atomically, so a reader never finds the preview missing.