Kodi Community Forum
open tvshow in library view - 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: open tvshow in library view (/showthread.php?tid=352046)



open tvshow in library view - ccMatrix - 2020-02-25

Hello there,

I started working on my own home automation project and so far it works great and I enjoy using the JSON-RPC api. It was fairly easy to get the list of tvshows, match the label property to the requested tv show name and retrieve the tv show info.

Now I want to navigate to the tvshow using the api. I tried using GUI.ActivateWindow({ window: 'videos', parameters: [ tvshow.file ] }). 
However since the tvshow.file field is the filesystem path to the folder of this tvshow, Kodi always opens up the folder view for this tvshow. So far I did not find any other tvshow field I could use here. I was hoping to get a videodb:// url somehow.

How can I tell kodi via JSON-RPC to open the tvshow in library view (the one with the "All Seasons" , "Season 1" , ...) listing?

Thanks in advance for any help!


RE: open tvshow in library view - ccMatrix - 2020-02-25

Some more hours of searching and I found some clues. I am using the parameter 'videodb://tvshows/titles/TVSHOWID/' now instead of tvshow.file which seems to work.