Solved Getting channel logos - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174) +---- Thread: Solved Getting channel logos (/showthread.php?tid=229413) |
Getting channel logos - enen92 - 2015-06-12 Hey there, I'd like to get the channels of my kodi setup and present the logos of each channel on a web interface. So I'm basically calling: PHP Code: {"jsonrpc": "2.0", "method": "PVR.GetChannels", "params": {"channelgroupid" :2,"properties":["channel","channeltype","thumbnail","broadcastnow","broadcastnext"]]} And I receive the thumbnails as below: Quote:"thumbnail": "image://%2fhome%2farch%2flogos%2fenen%2flogos%2frtp1.png/" Does anyone know how can I use this logo on a webpage? I assume there is some method to serve the path above through http? I just get lost on the documentation. By inspecting other apps I can't find out any other call appart to the one I posted above. Thanks in advance RE: Getting channel logos - enen92 - 2015-06-12 It seems that according to: http://kodi.wiki/view/Webserver The image should be called this way: http://<your ip>:<configured port>/image/<url encoded image:// path> RE: Getting channel logos - enen92 - 2015-06-12 Just for reference, what I was trying to do was to present the logos of my own channels on a webpage. So basically, any json-rpc command would be executed from python (from kodi itself), without knowing anything about the webserver setup. This placed a problem because the json api returns a thumbnail value that can only be retrieved if passed to the webserver. Since the python addon doesn't know anything about the webserver (user,pass,port,etc) it's a no go. So my solution was to find out first the settings of the webserver by calling getsettings: PHP Code: import xbmc,json Marked as solved. |