mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
c890651806
commit
bcc406ee05
@ -25,6 +25,8 @@ class GutenbergStore(StorePlugin):
|
|||||||
d = d.exec_()
|
d = d.exec_()
|
||||||
|
|
||||||
def search(self, query, max_results=10, timeout=60):
|
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)
|
url = 'http://www.google.com/xhtml?q=site:gutenberg.org+' + urllib2.quote(query)
|
||||||
|
|
||||||
br = browser()
|
br = browser()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user