2013-05-24, 19:30
(2013-05-22, 12:54)slinuxgeek Wrote:(2013-05-17, 20:27)ace5342 Wrote:(2013-05-16, 11:29)slinuxgeek Wrote: I could not find source for greasemonkey and I think it may not be related to youtube plugin code for xbmc.
I just want that search should start on click of a button in video library window, instead of by clicking on an item in panel control.
Right now there is a search icon item in panel if we click it, it displays all previous searches and another icon for new search clicking on that displays Dialog keyboard to enter search string to search.
I want to achieve same on click of a button.
I have been looking for a similar thing (one call or two at the most to go from the xbmc menu to the youtube search menu with the dialog box ready for input) using JSON RPC.
can you post here if you do find a solution as i could prob make what you want work for me.
Hi ace5342,
I did it through small script:
On click of the button I am calling this script:
So basically I am trying to open the virtual folder with that folder path which is of same format when YouTube search displays a search result.PHP Code:import xbmc
import CommonFunctions as common
def Main():
print "*************************Begin YouTube Search*****************************"
query = common.getUserInput('Search YouTube', '')
if query:
xbmc.executebuiltin('ReplaceWindow(video,plugin://plugin.video.youtube/Explore Youtube/?feed=search&path=/root/search&search=' + query + ',return)')
print "******************************END********************************"
if __name__ == '__main__':
Main()
That will take some moment to draw result and there will not be any user feedback like working dialog displayed, but if you know little scripting you can achieve that too.
Thank you for the reply slinuxgeek i will give it a go when i get home.