xbmc.executebuiltin function that will add links to the favourites.xml?
#1
Is there a xbmc.executebuiltin function that will add links to the favourites.xml?
Reply
#2
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)))
Reply
#3
What is the output you get? That coyld be a clue to the error?
Reply
#4
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.vide...n.py#L1475
in
https://github.com/primaeval/plugin.video.imdbsearch/
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc.executebuiltin function that will add links to the favourites.xml?0