Hi,
i'm trying to create some listitems which i place on the osd of the video player and that all kind of works but i'm somehow failing to set the path properly. Maybe someone can help me out here.
So i got two things which give me problems at the moment
1. When i execute my plugin from such a listitem the main window gets focused before it runs. Is that avoidable?
list item gets created from something like this
i'm trying to create some listitems which i place on the osd of the video player and that all kind of works but i'm somehow failing to set the path properly. Maybe someone can help me out here.
So i got two things which give me problems at the moment
def createListItem(label, path, thumb, count, isFolder=None, isPlayable=None, resolvedUrl=None):
#- If a ListItem opens a lower lever list, it must have isFolder=True.
#- If a ListItem calls a playback function that ends with setResolvedUrl, it must have setProperty('isPlayable', 'true') and IsFolder=False.
#- If a ListItem does any other task except for mentioned above, is must have isFolder=False (and only this).
li = xbmcgui.ListItem(label, offscreen=True)
li.setArt({'thumb': thumb})
li.setLabel(label)
li.setProperty("index", str(count))
li.setPath(path=path)
li.setProperty('path', path)
if(isFolder!=None):
li.setIsFolder(isFolder)
if(isPlayable!=None):
if(isPlayable):
li.setProperty("isPlayable", "true")
else:
li.setProperty("isPlayable", "false")
#if(resolvedUrl!=None):
return li
1. When i execute my plugin from such a listitem the main window gets focused before it runs. Is that avoidable?
list item gets created from something like this
{'label': 'Comments', 'path': 'plugin://plugin.program.extrabuttons/?provider=plugin.video.youtube&action=show_comment&video_id='+self.videoInfo['items'][0]['id'], 'logo': logo, 'isFolder': False, 'isPlayable':None, 'resolvedUrl':None}
2. i try to show a folder from a plugin like this{'label': channelName, 'path': 'plugin://plugin.video.youtube/channel/'+self.channelInfo[0]['id']+'/', 'logo': channelLogo, 'isFolder': True, 'isPlayable': False, 'resolvedUrl':None}
... kodi just loads a few times and than aborts