Kodi Community Forum
Managing sets and genres - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174)
+---- Thread: Managing sets and genres (/showthread.php?tid=155959)



Managing sets and genres - Zernable - 2013-02-12

Is there currently any way to manage sets and genres (adding new and deleting existing) using JSON? I don't see any methods in the API, but figured I'd ask. If there isn't currently any way of doing this, is this an enhancement that is planned?


RE: Managing sets and genres - Montellese - 2013-02-12

You can add sets and genres directly to videos using the VideoLibrary.SetFooDetails methods. But make sure to always pass in the full information so if you have a movie with "Action" and "Crime" genre and you also want to add the "Thriller" genre you need to pass in all three genres, not just the new one. By leaving existing ones out, you remove that genre from the video item.