Wintermute0110 / plugin.program.AEL.dev

Emulator frontend and app launcher for Kodi
GNU General Public License v2.0
105 stars 36 forks source link

Changing assets don't clear cache #139

Open Hybrid512 opened 3 years ago

Hybrid512 commented 3 years ago

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.

Wintermute0110 commented 3 years ago

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?

Hybrid512 commented 3 years ago

I'm doing this :

Hybrid512 commented 3 years ago

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

Wintermute0110 commented 3 years ago

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.