2011-04-18, 07:42
I'm trying to write my first plugin, but things are not working as I thought they would. This is part of the code I use to add items to my view:
cmd contains for example: ActivateWindow(10024,"plugin://plugin.video.youtube/")
In given example it adds the item with the name YouTube and a thumbnail to the list as it should but nothing happens when I click it. I'm probably missing something, what have I done wrong?
Code:
folder = False
icon = "DefaultProgram.png"
listitem = xbmcgui.ListItem( name, iconImage=icon, thumbnailImage=thumbnail)
xbmcplugin.addDirectoryItem( handle=int( self._handle ), url=cmd, listitem=listitem, isFolder=folder, totalItems=total)
cmd contains for example: ActivateWindow(10024,"plugin://plugin.video.youtube/")
In given example it adds the item with the name YouTube and a thumbnail to the list as it should but nothing happens when I click it. I'm probably missing something, what have I done wrong?