Open DialogVideoInfo.xml for a specified movie?
#4
(2019-09-10, 22:23)fnord12 Wrote: Thanks for the response, @Lunatixz   That's the documentation that Ronie pointed to, but i guess what i don't understand is how or where to "get" the ListItem.

So if i'm doing something like this in a function..

python:
li = xbmcgui.ListItem()
debug(li)
self.displayVideoInfo(li)

...and then this is what's called...

python:
def displayVideoInfo(self,li):
        xbmc.executebuiltin('Dialog.Close(all,true)')
        dialog = xbmcgui.Dialog(li)
        dialog.info(li)

...I see "<xbmcgui.ListItem object at 0x000000002C0B12D8>" written to my debug log, and no errors, but nothing happens (aside from the open dialogs correctly closing).

But your comment has i think helped me along since i'm trying to pass the ListItem now instead of trying to get it in the displayVideoInfo function.  I'm probably still trying to get the ListItem in the wrong place.  So i appreciate your help and i'll keep trying.
Can you post full code? Where are your trying to get the listitem from? Your example is an empty listitem object.
There are a few ways to get a listitem.... It would help put things in context if you could explain your project goal... what type of script are you writing? THX

BTW don't use  xbmc.executebuiltin('Dialog.Close(all,true)') this is a faux pas
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply


Messages In This Thread
RE: Open DialogVideoInfo.xml for a specified movie? - by Lunatixz - 2019-09-10, 22:53
Logout Mark Read Team Forum Stats Members Help
Open DialogVideoInfo.xml for a specified movie?0