mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
Scan thumbnails were named by a 32-bit djb2 hash of "path|size|mtime" (or the document key) and an existing file was reused without checking its source, so two songs whose keys collided showed one cover. The Android document scan had its own copy of the same hash. Thumbnails are now named cover_<first 128 bits of SHA-256 of the key>, in Rust for every scan and through library_cover_slot for the Kotlin document scan, so reuse by name is safe. Rows that name older files keep working; those files are not looked up again and are pruned once unreferenced. A forced rescan can touch a .regenerate marker in the cover folder: thumbnails older than it are extracted again under the same name instead of being reused, and the newer of a .jpg and .png sibling wins.