2019-09-10, 20:17
I am trying to open the WINDOW_DIALOG_VIDEO_INFO dialog for an existing movie after click on an item in a list. Basically the same behavior as the built-in search when clicking on an Actor or Director and then on a search result.
It seems like something like this won't work...
...because this window only seems to open for the currently selected list item, and the secondary parameter seems to be ignored.
I found an older post https://forum.kodi.tv/showthread.php?tid...ight=12003 where @ronie pointed someone to xbmcgui.Dialog().info(listitem).
But I'm still having trouble using that to open DialogVideoInfo.xml for a specified movie.
Something like...
...will create a new instance (that happens to be populated with my target movie's title). But is there any way to just open the dialogue for a specified movie?
It seems like something like this won't work...
python:ActivateWindow(12003,"videodb://movies/4131/",return)
...because this window only seems to open for the currently selected list item, and the secondary parameter seems to be ignored.
I found an older post https://forum.kodi.tv/showthread.php?tid...ight=12003 where @ronie pointed someone to xbmcgui.Dialog().info(listitem).
But I'm still having trouble using that to open DialogVideoInfo.xml for a specified movie.
Something like...
python:li = cntrl.getSelectedItem()
label = li.getLabel()
dialog = xbmcgui.Dialog(li.setInfo("video",{"title":label}))
dialog.info(li)
...will create a new instance (that happens to be populated with my target movie's title). But is there any way to just open the dialogue for a specified movie?