fix search plugin
This commit is contained in:
parent
725ca07a25
commit
da24fafa85
|
@ -116,6 +116,7 @@ class plugin_Search:
|
|||
pass
|
||||
|
||||
def torrent_search(self, widget=None):
|
||||
import dcommon
|
||||
print "Searching with engine", self.se
|
||||
url = self.engines.get(self.se)
|
||||
entry = self.search_entry.get_text()
|
||||
|
@ -127,6 +128,7 @@ class plugin_Search:
|
|||
url = url.replace('${query}', entry)
|
||||
print 'URL =', url
|
||||
print 'Entry =', entry
|
||||
dcommon.open_url_in_browser(url)
|
||||
|
||||
def populate_search_menu(self):
|
||||
import gtk
|
||||
|
|
|
@ -155,7 +155,7 @@ def get_glade_file(fname):
|
|||
def get_pixmap(fname):
|
||||
return PIXMAP_DIR + "/" + fname
|
||||
|
||||
def open_url_in_browser(dialog, link):
|
||||
def open_url_in_browser(link):
|
||||
try:
|
||||
webbrowser.open(link)
|
||||
except webbrowser.Error:
|
||||
|
|
Loading…
Reference in New Issue