2022-12-22, 11:09
I'm currently building a new STB based on a Raspberry Pi4 and have included a small TFT to show information such as titles, posters, plot summaries etc. I am developing the TFT driver app in python and communicating with the running copy of Kodi using json-RPC over TCP - which seems to be working fine and I can get all the relevant information about the active player and the associated audio/video/PVR stream. However I have a couple of issues with artwork which it would be nice to resolve.
I can retrieve a list of artwork URLs over json in the form of Kodi-encoded URLs as per Artwork/Accessing_with_skins_and_JSON-RPC (wiki). Most of these are http links to TVDB etc, however the poster images in particular are showing smb URLs pointing to files in a directory on my NAS which got created when I did a media backup about 12 months ago. I can't find any documentation which describes this behaviour. It seems as though Kodi has taken the opportunity to use my backup as some sort of cache - has anyone else come across this behaviour? (Does this mean I should do frequent backups to refresh this 'cache'? )
On a parallel note, according to the above link I should be able to retrieve artwork files via Kodi's 8080 http port, so that Kodi will choose the optimum source for a particular artwork. So far I can only get 'no file found'. Has anyone actually succeeded in getting this to work?
I can retrieve a list of artwork URLs over json in the form of Kodi-encoded URLs as per Artwork/Accessing_with_skins_and_JSON-RPC (wiki). Most of these are http links to TVDB etc, however the poster images in particular are showing smb URLs pointing to files in a directory on my NAS which got created when I did a media backup about 12 months ago. I can't find any documentation which describes this behaviour. It seems as though Kodi has taken the opportunity to use my backup as some sort of cache - has anyone else come across this behaviour? (Does this mean I should do frequent backups to refresh this 'cache'? )
On a parallel note, according to the above link I should be able to retrieve artwork files via Kodi's 8080 http port, so that Kodi will choose the optimum source for a particular artwork. So far I can only get 'no file found'. Has anyone actually succeeded in getting this to work?