mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 11:03:01 +02:00
...
This commit is contained in:
parent
c890651806
commit
bcc406ee05
1 changed files with 2 additions and 0 deletions
|
|
@ -25,6 +25,8 @@ def open(self, gui, parent=None, start_item=None):
|
|||
d = d.exec_()
|
||||
|
||||
def search(self, query, max_results=10, timeout=60):
|
||||
# Gutenberg's website does not allow searching both author and title.
|
||||
# Using a google search so we can search on both fields at once.
|
||||
url = 'http://www.google.com/xhtml?q=site:gutenberg.org+' + urllib2.quote(query)
|
||||
|
||||
br = browser()
|
||||
|
|
|
|||
Loading…
Reference in a new issue