2014-08-22, 22:31
(2014-08-21, 05:07)woodside Wrote: What is the format for a search url?
It's possible to figure it out from the source in default.py:
Code:
__ACTION_SEARCH__ = 'search'
...
def search(query=None, pageToken=None, pageIndex=1):
...
action = bromixbmc.getParam('action')
_id = bromixbmc.getParam('id')
query = bromixbmc.getParam('query', '')
pageToken = bromixbmc.getParam('pageToken')
pageIndex = int(bromixbmc.getParam('pageIndex', '1'))
mine = bromixbmc.getParam('mine', 'no')=='yes'
if action == __ACTION_SHOW_SEARCH_INDEX__:
showSearchIndex()
elif action == __ACTION_SEARCH__:
search(query, pageToken, pageIndex)
So the 'action' for searching is 'search', which has three parameters, 'query' (default empty), 'pageToken' (default None) and 'pageIndex' (default 1). So in your case you want something like this:
Code:
plugin://plugin.video.bromix.youtube/?action=search&query=$INFO[Window(Home).Property(Artist)]