Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing assets don't clear cache #139

Open
Hybrid512 opened this issue Jun 5, 2021 · 4 comments
Open

Changing assets don't clear cache #139

Hybrid512 opened this issue Jun 5, 2021 · 4 comments
Labels

Comments

@Hybrid512
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants