Calibre 6.0 not finding covers to download

Bug #1981469 reported by Philip Endean
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Invalid
Undecided
Unassigned

Bug Description

I've just upgraded to Calibre 6. When adding new books and standardizing the metadata, I discover that Calibre is no longer finding and downloading covers on amazon.com, google images etc.

Working in Windows 11. It's a new problem with Calibre 6.

Revision history for this message
Kovid Goyal (kovid) wrote :

Works fine for me look at the metadata download log, most likely your
antivirus/firewal is blocking calibre. Exclude calibre_parallel.exe from
these and you will be fine.

Changed in calibre:
status: New → Invalid
Revision history for this message
Philip Endean (pendean) wrote :

Still have the problem with Calibre 6.1, having put calibre_pareallel.exe as an exception in Windows Defender.
The issue seems to be that Calibre is not seeing the covers on amazon or google before downloading them, but only on Open Library.

Example: this book here

https://www.amazon.com/Remain-Silent-Manon-Bradshaw-Novel-ebook/dp/B07XND4PHS/ref=sr_1_1?crid=16N3E03KZB6TI&keywords=remain+silent&qid=1657965916&sprefix=remain+silent%2Caps%2C147&sr=8-1

yields a download log from Amazon.com that goes:

****************************** Amazon.com Covers ******************************
Request extra headers: [('User-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36'), ('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8'), ('Upgrade-insecure-requests', '1'), ('Referer', 'https://www.google.com/search?q=%289780525509998+or+978-0525509998%29+site%3Awww.amazon.com')]
Failed to download valid cover
Took 1.5461535453796387 seconds
No cached cover found, running identify
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Server: auto
Making google query: https://www.google.com/search?q=%289780525509998+or+978-0525509998%29+site%3Awww.amazon.com
Getting details from: https://webcache.googleusercontent.com/search?q\x3dcache:6aTr1WfPoMoJ:https://www.amazon.com/-/es/Susie-Steiner/dp/0525509992+\x26amp;cd\x3d2\x26amp;hl\x3dfr\x26amp;ct\x3dclnk\x26amp;gl\x3dfr
URL malformed: 'https://webcache.googleusercontent.com/search?q\\x3dcache:6aTr1WfPoMoJ:https://www.amazon.com/-/es/Susie-Steiner/dp/0525509992+\\x26amp;cd\\x3d2\\x26amp;hl\\x3dfr\\x26amp;ct\\x3dclnk\\x26amp;gl\\x3dfr'
get_details failed for url: 'https://webcache.googleusercontent.com/search?q\\x3dcache:6aTr1WfPoMoJ:https://www.amazon.com/-/es/Susie-Steiner/dp/0525509992+\\x26amp;cd\\x3d2\\x26amp;hl\\x3dfr\\x26amp;ct\\x3dclnk\\x26amp;gl\\x3dfr'
Traceback (most recent call last):
  File "calibre\ebooks\metadata\sources\amazon.py", line 381, in run
  File "calibre\ebooks\metadata\sources\amazon.py", line 387, in get_details
TypeError: cannot unpack non-iterable NoneType object.

I'm wondering what the last line means ...

Would be grateful for help.

Revision history for this message
Kovid Goyal (kovid) wrote :

I am guessing you are in Europe? google (which is what is used to search
amazon) just implemented the cookie consent law by serving up different
content for EU ip addresses. I have worked around it and calibre should
use the workaround automatically, so try again in a few hours.

Revision history for this message
Kovid Goyal (kovid) wrote :

Oh and also enable the google images covers source in Preferences->metadata download

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.