Kodi Community Forum

Full Version: how to obtain default images
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When accessing favorites via GetFavourites method, the return object contains a "thumbnail" value for each item in the list.
Depending on what is in your favorite list, it might be a 'default' item, such as:

{
"thumbnail": "DefaultMusicSongs.png",
"title": "Songs",
"type": "window"
}

Other times there may be a direct link to where on the server file system such as with the youtube addon:

{
"thumbnail": "C:\\Users\\Pc\\AppData\\Roaming\\Kodi\\addons\\plugin.video.youtube\\icon.png",
"title": "YouTube",
"type": "window"
}

what i would like to find out is how to access these.

I well know that when the path is formatted as a "image" resource such as returned in other methods:

{
"addonid": "plugin.video.youtube",
"thumbnail": "image://C%3a%5cUsers%5cPc%5cAppData%5cRoaming%5cKodi%5caddons%5cplugin.video.youtube%5cicon.png/",
"type": "xbmc.python.pluginsource"
}

then the PrepareDownload method can be used to obtain the correct link.
But this doesn't work on these that are returned by these returned by GetFavourites as described above...

any hints?