Release Artist Slideshow addon (with skin and addon integration)
(2020-01-10, 19:32)pulsar124 Wrote: Thanks for looking into this! I did see the Cache wiki page. Also did a lot of google searching, and it does look there is no easy way to disable caching. Kodi core is compiled, correct? I do see some string relevant to caching inside the kodi binary.

Do you know at what point inside your Python script the following Kodi LOG message are generated?

2020-01-09 20:14:45.100 T:140325565753088   DEBUG: [Artist Slideshow] ArtistSlideshow.Image set to /home/syam/KODI/CD-2019.04.28__MG_3534.jpg
2020-01-09 20:14:45.273 T:140326167779072   DEBUG: Caching image '/home/syam/KODI/CD-2019.04.28__MG_3534.jpg' to '3/3985c122.jpg':
2020-01-09 20:14:45.373 T:140326167779072   DEBUG: cached image 'special://masterprofile/Thumbnails/3/3985c122.jpg' size 1080x720
2020-01-09 20:14:46.101 T:140326030870272   DEBUG: [Artist Slideshow] same file playing, using cached artists_info
2020-01-09 20:14:50.101 T:140325565753088   DEBUG: Previous line repeats 3 times.

In particular, the second line. Perhaps I can trick Kodi into not generating the cached version of the image.

That ArtistSlideshow.Image message comes right after AS selects one of the random images and then tells the skin that's the image to display.  In the code that is in the Slideshow object within the run() method.  That starts at line 157 of artistslideshow.py.  I'd give you an exact line number, for the image set, but it's changing with the next beta.  Look for this line:

python:
self._set_property( 'ArtistSlideshow.Image', image )

I don't think there's going to be any way from within Python to get Kodi to not cache that image, but that's the line that sets the skin property so the skin can display the image.
Reply


Messages In This Thread
New Test Version Available - by pkscout - 2012-03-08, 16:26
[No subject] - by mardup - 2012-03-10, 12:26
[No subject] - by pkscout - 2012-03-11, 01:35
RE: - by mardup - 2012-03-12, 17:50
RE: - by pkscout - 2012-03-13, 03:22
New Beta Version for Testing - by pkscout - 2012-07-13, 17:54
New Beta Version for Testing - by pkscout - 2012-07-14, 22:50
Pull Request for v1.4 Submitted - by pkscout - 2012-07-20, 23:01
New Beta Version for Testing - by pkscout - 2012-08-10, 03:18
New Frodo BETA Support Files - by pkscout - 2012-11-21, 06:20
New 2.0.0 Beta Coming Soon - by pkscout - 2016-05-12, 02:54
Writing tips - by Parkerbup - 2017-02-03, 14:56
RE: Artist Slideshow addon (with skin and addon integration) - by pkscout - 2020-01-10, 20:37
Add-on Artist Slideshow - by jo26 - 2014-08-08, 22:58
Logout Mark Read Team Forum Stats Members Help
Artist Slideshow addon (with skin and addon integration)5