2019-09-10, 22:53
(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.Can you post full code? Where are your trying to get the listitem from? Your example is an empty listitem object.
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.
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