mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
Large libraries often keep album art as cover.jpg or folder.jpg beside the songs instead of embedding it, so those songs showed no cover. When a song has no embedded artwork, local scans now fall back to an image in its folder: cover, folder, front, album, albumart (jpg, jpeg, png, webp), case-insensitive, ignoring hidden and AppleDouble files. A disc folder (CD1, Disc 2, ...) without one uses its parent's image. Embedded artwork always wins. The Rust path scan (desktop, iOS, Android file paths) picks the image from the directory listing it already makes and hands it to the workers; the thumbnail key includes the image path, size and mtime, so a replaced image gets a new thumbnail. CUE tracks get the same fallback. The Android SAF scan picks the image from its own listing through new FFI helpers and makes each image into a content-named thumbnail once per scan.