mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Check that search result urls startwith https://books.google
Dont trust google web search to always return google books results
This commit is contained in:
parent
21bb0ce833
commit
3f550d5382
@ -411,7 +411,7 @@ class GoogleBooks(Source):
|
||||
google_ids = []
|
||||
for q in se.google_parse_results(root, r[0], log=log, ignore_uncached=False):
|
||||
m = pat.search(q.url)
|
||||
if m is None:
|
||||
if m is None or not q.url.startswith('https://books.google'):
|
||||
continue
|
||||
google_ids.append(m.group(1))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user