vanilla-music / vanilla

Vanilla Music Player for Android
GNU General Public License v3.0
1.18k stars 295 forks source link

Scan changes should flush the LRU cover cache [Was: Embedded cover art isn't updated when rescanning without a clean restart of entire app] #904

Open ghost opened 5 years ago

ghost commented 5 years ago

Description

Embedded cover art isn't updated when rescanning without a clean restart of entire app.

Steps to reproduce the issue

  1. Add a song with no embedded cover (in the id3 tags or anywhere else) & album name
  2. Scan such that it shows up in the album list with no cover
  3. Change the song's disk file to actually have an embedded cover into its id3 tags, change something else you like (e.g. title)
  4. Scan with "Scan full filesystem (slower)" enabled

--> all the other info like album name & title updates, but the album is still shown with no cover

  1. Restart app (by stopping playback, stopping scanning, then going into the recent app/task manager overview and clicking the small "Close" button)
  2. Relaunch vanilla
  3. Observe that now, the cover is actually updated - without any further change (like an additional rescan or anything)
andiandi13 commented 5 years ago

I think your issue is kinda a duplicate of #662.

It would be cool to be able to clear cover cache without having to flush the entire library !

ghost commented 5 years ago

@andiandi13 there is still a difference between "I want a button to separately force the covers to update at any time I like" (which is #662 ) and the question whether I should need to do this in the first place, which I think for a rescan I shouldn't! If Vanilla detects a change in the file, why can it not automatically also attempt to update the cover? That would make much more sense to me

adrian-bl commented 5 years ago

What you see is the LRU cover cache.

I guess we really should flush it if the media scanner noticed changes. (changing the title)