Kodi Community Forum
Should a json library update cause all library image textures to refresh? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Should a json library update cause all library image textures to refresh? (/showthread.php?tid=371943)



Should a json library update cause all library image textures to refresh? - realcopacetic - 2023-02-11

I have a button that runs a script to set a listitem's userrating using a json call: 'AudioLibrary.SetSongDetails'.

I notice that whenever this is run, all the image controls with textures from the library (e.g. ListItem.Art(xyz)) are refreshed.

Video here showing what I mean: https://www.loom.com/share/f4c07fd7926d43b7b27e1905866bb312

Is this an issue anyone else sees when updating something in the library via JSON? I wonder if it could be a result as well of the fact I'm running my library remotely via mySQL, because I certainly notice that it takes a moment longer to load the images for albums than it did when I ran the library locally.

Edit: Please ignore the low fps/ stuttery nature of the video. I access my development PC via remote desktop which doesn't play nice with video so the stream gets quite choppy when you're doing more than desktop browsing.


RE: Should a json library update cause all library image textures to refresh? - roidy - 2023-02-11

I think anything that makes a change to the library will force the view to refresh and the images will therefore reload, for example just marking an item as watched or unwatched:-

https://streamable.com/b098uc


RE: Should a json library update cause all library image textures to refresh? - realcopacetic - 2023-02-11

Yeah you're right I didn't think about that. Thanks @roidy. Annoying bit can't be avoided I suppose!