run addon with arguments
#1
Hi,
I want to show a search dialog and when the users enters the search keywords they would be passed to the plugin url.
Let's assume my addon is called plugin.video.darkmatter and that there is a function called xbmc.openaddon

python:

    def search():
        kb = xbmc.Keyboard('', 'heading', True)
        kb.setDefault('search')
        kb.setHeading('enter search query')
        kb.setHiddenInput(False)
        kb.doModal()
        if (kb.isConfirmed()):
            text = kb.getText()
            xbmc.openaddon('[plugin://plugin.video.darkmatter/?mode=Search&query={}'.format(text))
        else:
            sys.exit(1)



so is there a xbmc.openaddon function?
Reply

Logout Mark Read Team Forum Stats Members Help
run addon with arguments0