diff --git a/src/calibre/ebooks/metadata/sources/worker.py b/src/calibre/ebooks/metadata/sources/worker.py index 779613c91b..79b9590922 100644 --- a/src/calibre/ebooks/metadata/sources/worker.py +++ b/src/calibre/ebooks/metadata/sources/worker.py @@ -100,7 +100,8 @@ def single_identify(title, authors, identifiers): log = GUILog() results = identify(log, Event(), title=title, authors=authors, identifiers=identifiers) - return [metadata_to_opf(r) for r in results], dump_caches(), log.dump() + return [metadata_to_opf(r) for r in results], [r.has_cached_cover_url for + r in results], dump_caches(), log.dump() def single_covers(title, authors, identifiers, caches): load_caches(caches) diff --git a/src/calibre/gui2/metadata/single_download.py b/src/calibre/gui2/metadata/single_download.py index e66c92c21c..6fc209509d 100644 --- a/src/calibre/gui2/metadata/single_download.py +++ b/src/calibre/gui2/metadata/single_download.py @@ -398,9 +398,11 @@ class IdentifyWorker(Thread): # {{{ 'calibre.ebooks.metadata.sources.worker', 'single_identify', (self.title, self.authors, self.identifiers), no_output=True, abort=self.abort) - self.results, caches, log_dump = res['result'] + self.results, covers, caches, log_dump = res['result'] self.results = [OPF(BytesIO(r), basedir=os.getcwdu(), populate_spine=False).to_book_metadata() for r in self.results] + for r, cov in zip(self.results, covers): + r.has_cached_cover_url = cov self.caches.update(caches) self.log.load(log_dump) for i, result in enumerate(self.results):