Kodi Community Forum

Full Version: Add/Remove Favorite
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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)
Thanks nickr and phil65. That's exactly what I needed.
Fwiw there is nothing there regarding removing a favourite via json, wish there was, just adding and getting of course...