2015-08-27, 02:05
(2015-08-26, 19:52)effe Wrote: Will this works as a service to clear the texture cache every X seconds? I use Kodi as an informative point and I have some home backgrounds showing useful text that changing every 30 seconds (made with Imagemagick).
You can remove entries from the texture cache automatically if you know the urls of the artwork you want to remove - have a look at the purge option.
For example:
Code:
texturecache.py purge all informationpoint
Edit: If you're going to run texturecache.py every 30 seconds in an embedded-type environment I would strongly recommend you disable the automatic version check/update mechanism by adding "checkupdate = no" to texturecache.cfg (or adding "@checkupdate=no" on the command line), not only because it would avoid unnecessary internet usage and hits on github.com, but also because you probably don't want unexpected behaviour changes due to a new version downloading itself automatically. Should you ever need to update, manually run "texturecache.py update".