mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Also avoid the lock when getting the cover
This commit is contained in:
parent
878d93327e
commit
8095b33d09
@ -2652,7 +2652,10 @@ class Cache:
|
||||
if not fmts:
|
||||
continue
|
||||
mi = self._get_metadata(book_id)
|
||||
cdata = self.cover(book_id)
|
||||
buf = BytesIO()
|
||||
if not self._copy_cover_to(book_id, buf):
|
||||
return
|
||||
cdata = buf.getvalue()
|
||||
if cdata:
|
||||
mi.cover_data = ('jpeg', cdata)
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user