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:
Kovid Goyal 2012-12-17 10:00:12 +05:30
parent 5e9a943cc0
commit 93a2585352

View File

@ -435,7 +435,7 @@ class Worker(Thread): # Get details {{{
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:
src = imgs[0].get('src')
if '/no-image-avail' not in src: