[Bug?] Favourites.AddFavourite
#1
I'm trying to add (just as a test - OPTION will be a string) the following into favourites:
Quote:<favourite name="Restore OPTION">RunScript(special://masterprofile/smashingfavourites/scripts/skinscripts/smashingxonfluence.py, restore, OPTION)</favourite>

To do that I used:
Code:
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Favourites.AddFavourite", "params": {"title":"Restore OPTION", "type":"script", "path":"special://masterprofile/smashingfavourites/scripts/skinscripts/smashingxonfluence.py, restore, OPTION", "thumbnail":""}, "id": 1}')

But I get:
Code:
<favourite name="Restore OPTION">RunScript(&quot;special://masterprofile/smashingfavourites/scripts/skinscripts/smashingxonfluence.py, restore, OPTION&quot;)</favourite>

First thing I tried was taking the quotes from around the target script - and obviously that didn't work. At that point I ran out of ideas.
Not the end of the world - I can add a function to clean out the "&quot;" - but it doesn't seem to be doing what's intended.
So is this a bug or am I being stoopid?
Reply

Logout Mark Read Team Forum Stats Members Help
[Bug?] Favourites.AddFavourite0