mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Change in google search page markup
Fixes #1884400 [Amazon.co.jp metadata won't download](https://bugs.launchpad.net/calibre/+bug/1884400)
This commit is contained in:
parent
33917b2737
commit
1f6072c886
@ -20,7 +20,7 @@ from calibre import browser as _browser, prints, random_user_agent
|
||||
from calibre.utils.monotonic import monotonic
|
||||
from calibre.utils.random_ua import accept_header_for_ua
|
||||
|
||||
current_version = (1, 0, 3)
|
||||
current_version = (1, 0, 4)
|
||||
minimum_calibre_version = (2, 80, 0)
|
||||
|
||||
|
||||
@ -241,7 +241,7 @@ def google_search(terms, site=None, br=None, log=prints, safe_search=False, dump
|
||||
continue
|
||||
title = tostring(a)
|
||||
try:
|
||||
c = div.xpath('descendant::div[@role="menu"]//a[@class="fl"]')[0]
|
||||
c = div.xpath('descendant::*[@role="menu"]//a[@class="fl"]')[0]
|
||||
except IndexError:
|
||||
log('Ignoring {!r} as it has no cached page'.format(title))
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user