listing items from context menu
#1
Hello,

I'd like to use the context menu to list more items from my addon.

I've tried:
Code:
entries.append(("Links in comment", 'RunPlugin(plugin://plugin.video.reddit_tv/?mode=listLinksInComment&url=%s)' %site ))
and
Code:
entries.append( ( "Show Links", 'XBMC.RunPlugin(%s?path=plugin://plugin.video.reddit_tv/?mode=listLinksInComment&url=%s)' % ( sys.argv[0], site ) ) )
but I get handle issues -1

I've tried:
Code:
entries.append( ( "Links in comment", 'XBMC.ActivateWindow(Video,plugin://plugin.video.reddit_tv/?mode=listLinksInComment&url=%s)' % ( site ) ) )
But get very weird behavior with the code above. (it seems like kodi remembers/stores the generated directory items)

Basically the addon lists posts from reddit and I'm trying to add a context menu to list the links that are in the comments.
I use xbmcplugin.addDirectoryItem to populate the comments list.

What is the proper way to call your addon to do this?
Reply
#2
to answer my own question:

Code:
entries.append( ( translation(30202), "XBMC.Container.Update(%s?path=plugin://plugin.video.reddit_tv/?a=dummy&mode=listLinksInComment&url=%s)" % ( sys.argv[0], site ) ) )

"a=dummy" is just a dummy. it wasn't passed to the program when i was trying it out.
Reply

Logout Mark Read Team Forum Stats Members Help
listing items from context menu0