Accessing media artwork outside Kodi
#1
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?
Reply
#2
(2022-12-22, 11:09)dickh768 Wrote: 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
Sounds like you backed up to Single File. See warning here... https://kodi.wiki/view/Import-export_lib...ingle_File
Unfortunately there is no way to revert those changes.
You will have to rescrape to regain the correct links. Also consider saving your artwork locally instead of frequently hitting the artwork servers. Artwork Dump can do that for you... https://kodi.wiki/view/Import-export_lib...ingle_File

Use Separate Files method for backing up.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#3
Ok - thanks for the pointer.  I will have to work out how best to migrate without upsetting the 5 clients using the common database.   

I'm also on v18 (due to a couple of clients using Pi zeros) so it looks like I will need to use artwork-beef rather than artwork-dump.
Reply

Logout Mark Read Team Forum Stats Members Help
Accessing media artwork outside Kodi0