I would like to intergrate DialogVideoInfo.xml info my addon. But I do not understand how to populate $INFO[ListItem.Writer] etc..
So my question is: how to overwrite $INFO[ListItem....] variables from within python code?
I do not want to overwrite DialogVideoInfo because it is available in every skin.
I tried everything
Code:
class XMLRatingDialog(xbmcgui.WindowXMLDialog):
"""
Dialog class that asks user about rating of movie.
"""
def __init__(self, *args, **kwargs):
pass
self.setProperty("Title", "Title")
self.setProperty("Title", "Title")
self.setProperty("Video.Icon", "https://s3.amazonaws.com/titles.synopsi.tv/01982155-267.jpg")
# self.getControl(49).setProperty("Title", "Title")
def message(self, message):
"""
Shows xbmc dialog with OK and message.
"""
dialog = xbmcgui.Dialog()
dialog.ok(" My message title", message)
self.close()
def onInit(self):
pass
# self.getControl(49).setProperty("Title", "Title")
# setStaticContent
lis = []
liz=xbmcgui.ListItem("Film", iconImage="DefaultFolder.png", thumbnailImage="DefaultFolder.png")
liz.setInfo( type="Video", infoLabels={ "Label": "Film" } )
lis.append(lis)
self.getControl(49).addItem(liz)
# self.getControl(49).setStaticContent(items=liz)
xbmcplugin.endOfDirectory(int(sys.argv[1]))
def onClick(self, controlId):
if controlId == 11:
pass
self.close()
def onFocus(self, controlId):
self.controlId = controlId
def onAction(self, action):
if (action.getId() in CANCEL_DIALOG):
self.close()
def show_movie_dialog():
"""
Show movie dialog.
"""
ui = XMLRatingDialog("DialogVideoInfo.xml", __cwd__, "Default")
ui.doModal()
del ui
Search
Help