mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Metadata download: Fix cover downloading from non-US amazon sites broken by a website change. Fixes #1090765 (Problem downloading cover art from Amazon UK)
This commit is contained in:
parent
5e9a943cc0
commit
93a2585352
@ -435,7 +435,7 @@ class Worker(Thread): # Get details {{{
|
|||||||
|
|
||||||
|
|
||||||
def parse_cover(self, root):
|
def parse_cover(self, root):
|
||||||
imgs = root.xpath('//img[@id="prodImage" and @src]')
|
imgs = root.xpath('//img[(@id="prodImage" or @id="original-main-image") and @src]')
|
||||||
if imgs:
|
if imgs:
|
||||||
src = imgs[0].get('src')
|
src = imgs[0].get('src')
|
||||||
if '/no-image-avail' not in src:
|
if '/no-image-avail' not in src:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user