Posts: 2
Joined: Oct 2016
Reputation:
0
Is there an API to add/remove favorites in Kodi?
I'm trying to programatically add favorites to PlayMedia but I don't want to do it by writing directly to the favoruites.xml. Is there a method to do this?
Thanks.
Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
Since our JSON docs are a bit outdated, best is to start kodi webserver via settings and open "localhost:8080/jsonrpc" in your browser. You will find the needed methods there ("Favourites" namespace)
Posts: 2
Joined: Oct 2016
Reputation:
0
2016-10-17, 16:41
(This post was last modified: 2016-10-17, 16:42 by cmorgan12.)
Thanks nickr and phil65. That's exactly what I needed.
Posts: 146
Joined: Mar 2015
Reputation:
6
axa88
Senior Member
Posts: 146
2016-10-23, 01:55
(This post was last modified: 2016-10-23, 01:57 by axa88.)
Fwiw there is nothing there regarding removing a favourite via json, wish there was, just adding and getting of course...