2014-08-23, 03:13
(2014-08-22, 22:31)torenvalk Wrote:(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)]
Wow... Thanks alot!... Being the amateur I am, It probably would have taken me forever to figure that out if I even ever did. It works like a charm and is speedy fast. I really appreciate your help torenvalk!
[EDIT] SWEET!!! And it doesn't even choke with artists with commas in their names like "Crosby, Stills & Nash. I be happy!!!
[EDIT2] Hmmm one weird thing though.. $INFO[Player.Title] doesn't show the title of the currently playing video.. It shows as "videoplayback"
That's strange.