2012-02-20, 03:02
Hi,
I'm a begginner in Python and XBMC and i would like to make some improvements to my first plugin. For now, i'm getting a list of files from a XML file. I'm adding each elements with this function :
I would like to be able to jump to the next file in the list automatically at the end of the playback or pressing the next button. Is there a way to do it ?
Thanks a lot
Loc
I'm a begginner in Python and XBMC and i would like to make some improvements to my first plugin. For now, i'm getting a list of files from a XML file. I'm adding each elements with this function :
Code:
def addLink(name,url,iconimage):
ok=True
liz=xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
liz.setInfo( type="Video", infoLabels={ "Title": name } )
liz.setProperty('IsPlayable', 'true')
ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=liz)
return ok
I would like to be able to jump to the next file in the list automatically at the end of the playback or pressing the next button. Is there a way to do it ?
Thanks a lot
Loc