xbmc.executebuiltin function that will add links to the favourites.xml? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: xbmc.executebuiltin function that will add links to the favourites.xml? (/showthread.php?tid=267186) |
xbmc.executebuiltin function that will add links to the favourites.xml? - Mikewave - 2016-04-03 Is there a xbmc.executebuiltin function that will add links to the favourites.xml? RE: xbmc.executebuiltin function that will add links to the favourites.xml? - Mikewave - 2016-04-03 I found this but doesn't seem to work right. I think is has something to do with the script type. Code: json.loads(xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Favourites.AddFavourite", "params": {"title":"%s", "type":"script", "path":"%s", "thumbnail":"%s"}, "id": 1}' % (name, cmd, thumb))) RE: xbmc.executebuiltin function that will add links to the favourites.xml? - Torben - 2016-04-04 What is the output you get? That coyld be a clue to the error? RE: xbmc.executebuiltin function that will add links to the favourites.xml? - primaeval - 2016-04-14 I use it in my addon for videos and it works fine. The type is media for me. Have a look at def favourite here https://github.com/primaeval/plugin.video.imdbsearch/blob/master/main.py#L1475 in https://github.com/primaeval/plugin.video.imdbsearch/ |