plugin.program.AEL.dev icon indicating copy to clipboard operation
plugin.program.AEL.dev copied to clipboard

Changing assets don't clear cache

Open Hybrid512 opened this issue 3 years ago • 4 comments

Hi,

Adding new assets creates new cached pictures as expected but when you want to update an asset (for example replacing a fanart by a better one), image is not refreshed until you quit/return to kodi.

Hybrid512 avatar Jun 05 '21 17:06 Hybrid512

Can you provide more info? Are you using the scraper? Are you using the context menu to link an image or use the copy option?

Wintermute0110 avatar Jun 08 '21 12:06 Wintermute0110

I'm doing this :

  • first : after launcher creation, I run a "scan roms" with scraper as default (TGDB scraper for assets, ScreenScraper for metadata)
  • once scan is done, I see some roms with bad assets (especially games with very similar names, for example, with SNES, I have "aero the acro-bat" and "aero the acro-bat 2" and typically, the scraper get the same boxfront for both)
  • then, for the faulty rom, I use the context menu -> edit ROM -> Edit Assets/Artwork -> (select the asset such as boxfront) -> Scrape boxfront from TheGamesDB then select the good picture
  • when asset is updated, I'm sent back to my rom list but the image is not refreshed with the new one, I still see the old one but in the DB, this is the new one that is set
  • I must leave/return to kodi for the picture to be refreshed

Hybrid512 avatar Jun 09 '21 10:06 Hybrid512

I must add that when rescraping the picture, the picture is correct on the filesystem, this really is the cached picture that is wrong until you leave/return to kodi

Hybrid512 avatar Jun 09 '21 10:06 Hybrid512

Kodi uses an internal cache for all artwork. When you use AEL scrapers to download an image it takes some time until Kodi updates the cache. If the Kodi cache is no updated then the old cached image is displayed. Actually, there is no need to restart Kodi, if you wait some time or display the image a few times the cache will be updated.

Currently, TTBOMK there is no way to force an update of the Kodi image cache from an addon. I will check with the Kodi developers about this issue.

Wintermute0110 avatar Jun 10 '21 08:06 Wintermute0110