2018-03-04, 18:49
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
so is there a xbmc.openaddon function?
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?