mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Restrict by site since tbm doesnt work anymore
This commit is contained in:
parent
377d51769b
commit
9e3a2c8be7
@ -202,7 +202,7 @@ def to_metadata(browser, log, entry_, timeout, running_a_test=False): # {{{
|
|||||||
class GoogleBooks(Source):
|
class GoogleBooks(Source):
|
||||||
|
|
||||||
name = 'Google'
|
name = 'Google'
|
||||||
version = (1, 1, 1)
|
version = (1, 1, 2)
|
||||||
minimum_calibre_version = (2, 80, 0)
|
minimum_calibre_version = (2, 80, 0)
|
||||||
description = _('Downloads metadata and covers from Google Books')
|
description = _('Downloads metadata and covers from Google Books')
|
||||||
|
|
||||||
@ -433,7 +433,7 @@ class GoogleBooks(Source):
|
|||||||
se = search_engines_module()
|
se = search_engines_module()
|
||||||
br = se.google_specialize_browser(se.browser())
|
br = se.google_specialize_browser(se.browser())
|
||||||
if not has_google_id:
|
if not has_google_id:
|
||||||
url = se.google_format_query(q, tbm='bks')
|
url = se.google_format_query(q, site='books.google.com')
|
||||||
log('Making query:', url)
|
log('Making query:', url)
|
||||||
r = []
|
r = []
|
||||||
root = se.query(br, url, 'google', timeout=timeout, save_raw=r.append)
|
root = se.query(br, url, 'google', timeout=timeout, save_raw=r.append)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user