|
|
#1 |
|
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jul 2026
Device: Calibre
|
The "Download Cover" button on the Edit Metadata window isn't finding book covers in any of the sources it tries, but when the Search URL is pasted into a browser the desired result appears.
The workaround is to right-click the cover shown on the main browsing window and use "Search the internet..." followed by copying and pasting the desired image. What do I need to do to get the cover download function working? Code:
Starting cover download for: Making Money
Query: Making Money ['Terry Pratchett'] {}
****************************** Google Images Covers ******************************
Request extra headers: [('User-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36')]
Failed to download valid cover
Took 0.5157022476196289 seconds
Search URL: https://www.google.com/search?as_st=y&tbm=isch&as_q=Making+Money+Terry+Pratchett&as_epq=&as_oq=&as_eq=&cr=&as_sitesearch=&safe=images&tbs=isz:lt,islt:svga,iar:t,ift:jpg
No images found for, title: 'Making Money' and authors: ['Terry Pratchett']
********************************************************************************
****************************** Amazon.com Covers ******************************
Request extra headers: [('User-agent', 'Lynx/2.8.6rel.5 libwww-FM/2.14'), ('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.bing.com/search?q=Making+Money+Terry+Pratchett+site%3Awww.amazon.com')]
Failed to download valid cover
Took 1.5092532634735107 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=Making+Money+Terry+Pratchett+site%3Awww.amazon.com
Failed to find any results on results page, with title: Making Money Terry Pratchett site:www.amazon.com - Google Search
No search engine results for terms: Making Money Terry Pratchett
Trying the bing search engine instead
Making bing query: https://www.bing.com/search?q=Making+Money+Terry+Pratchett+site%3Awww.amazon.com
Bing returned no results
No search engine results for terms: Making Money Terry Pratchett
No matches found with query: ['Making', 'Money', 'Terry', 'Pratchett']
No cover found
********************************************************************************
****************************** Edelweiss Covers ******************************
Request extra headers: [('User-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36')]
Failed to download valid cover
Took 0.12074851989746094 seconds
No cached cover found, running identify
Currently Edelweiss returns random books for search queries
No cover found
********************************************************************************
****************************** Open Library Covers ******************************
Request extra headers: [('User-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36')]
Failed to download valid cover
Took 2.6226043701171875e-06 seconds
********************************************************************************
****************************** Big Book Search Covers ******************************
Request extra headers: [('User-agent', 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko')]
Failed to download valid cover
Took 0.40665102005004883 seconds
Failed to download cover from Big Book Search
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mechanize/_urllib2_fork.py", line 1242, in do_open
h.request(str(req.get_method()), str(req.get_selector()), req.data,
File "/usr/lib/python3.12/http/client.py", line 1356, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.12/http/client.py", line 1402, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.12/http/client.py", line 1351, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.12/http/client.py", line 1111, in _send_output
self.send(msg)
File "/usr/lib/python3.12/http/client.py", line 1055, in send
self.connect()
File "/usr/lib/python3.12/http/client.py", line 1497, in connect
self.sock = self._context.wrap_socket(self.sock,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/ssl.py", line 455, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/ssl.py", line 1042, in _create
self.do_handshake()
File "/usr/lib/python3.12/ssl.py", line 1320, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'bigbooksearch.com'. (_ssl.c:1000)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/ebooks/metadata/sources/covers.py", line 42, in run
self.plugin.download_cover(self.log, self.rq, self.abort,
File "/usr/lib/calibre/calibre/ebooks/metadata/sources/big_book_search.py", line 43, in download_cover
urls = get_urls(br, tokens)
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/ebooks/metadata/sources/big_book_search.py", line 18, in get_urls
raw = br.open(url).read()
^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mechanize/_mechanize.py", line 257, in open
return self._mech_open(url_or_request, data, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mechanize/_mechanize.py", line 287, in _mech_open
response = UserAgentBase.open(self, request, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mechanize/_opener.py", line 193, in open
response = urlopen(self, req, data)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mechanize/_urllib2_fork.py", line 431, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mechanize/_urllib2_fork.py", line 420, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/usr/lib/calibre/calibre/utils/browser.py", line 28, in https_open
return self.do_open(conn_factory, req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/mechanize/_urllib2_fork.py", line 1246, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'bigbooksearch.com'. (_ssl.c:1000)>
********************************************************************************
|
|
|
|
|
|
#2 |
|
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 643
Karma: 3671119
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Yet another damn thread about this topic. Because we clearly don’t have enough of those already.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52,883
Karma: 180988376
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Perhaps a big notice that Google search no longer works? That most of the cover/metadata download options no longer work? That if you are using the Amazon metadata download, you need to use Amazon servers? I lack the patience to try the Wayback machine option.
For my uses, the only cover only download plugins that seem to work semi-reliably are Apple Books covers and Kindle hi-res covers. Kobo Metadata, Amazon and romance.io are pretty decent at getting covers and metadata. And yeah, the number of people who don't bother to look for existing threads before posting their complaint is a bit risible. |
|
|
|
|
|
#4 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,050
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What I think would be good is to combine all the threads about covers/metadata.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Browser Download Not Working | noja | Kobo Reader | 1 | 11-10-2017 05:52 PM |
| Download metadata not working | joenurik | Library Management | 5 | 06-26-2015 11:32 AM |
| Calibre, download cover, metadata not working | mufc | Calibre | 9 | 06-19-2011 03:25 PM |
| Download Metadata not working in 6.52 | Sydney's Mom | Calibre | 4 | 05-15-2010 01:34 PM |
| Download links not working | toolio | Calibre | 1 | 12-09-2009 11:51 AM |