Posts: 347
Joined: Nov 2011
How do i add something in the context menu
cause i want to add like add to favourites or record or delete ?
and how do i assign a action to the context menu
Posts: 347
Joined: Nov 2011
whats going on ? global name listitem not defined i thought it was part of xbmcgui
Code:
contextMenuItems = []
contextMenuItems.append(('Add Favorite Channel', 'XBMC.RunPlugin(plugin://plugin.video.FilmOn/?url='+str(url)+'&mode=10&name=&iconimage=&description='))
ListItem.addContextMenuItems(contextMenuItems, True)
Posts: 1,299
Joined: Jul 2009
Reputation:
59
sphere
Retired Team-Kodi Member
Posts: 1,299
You need to call the "addContextMenuItems"-Method to _your_ instance of ListItem.
If you want to add context menu entries on all of your items you also need to to call the method on every item!
Maybe have instanced it as "li" or "liz"?