2011-08-27, 11:13
Hi.
I'm trying to create a plugin to that will enable viewing of mako.co.il website. I have managed to scrap all the programs into a list and display it on the screen using (modified) t0mm0 method in his Jerry Seinfeld plugin. How can I create a response for a sellection? Here is the part of the code which I use to create Items:
is a class I use to scrap the webpage.
I'm trying to create a plugin to that will enable viewing of mako.co.il website. I have managed to scrap all the programs into a list and display it on the screen using (modified) t0mm0 method in his Jerry Seinfeld plugin. How can I create a response for a sellection? Here is the part of the code which I use to create Items:
Code:
def add_dir_item(url, desc, img=''):
listitem = xbmcgui.ListItem(desc, iconImage=img,
thumbnailImage=img)
listitem.setProperty('IsPlayable', 'false')
xbmcplugin.addDirectoryItem(plugin_handle, url, listitem, isFolder=True)
for n in range (0,len(myp.descriptions)):
add_video_item(myp.hyperlinks[n], myp.descriptions[n])
xbmcplugin.endOfDirectory(plugin_handle)
Code:
myp