mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure that cached Metadata copies contain valid cover info when get_metadata is called with get_cover = True
This commit is contained in:
parent
66ed343b11
commit
87020e38be
@ -670,6 +670,8 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
||||
mi = self.data.get(idx, self.FIELD_MAP['all_metadata'],
|
||||
row_is_id = index_is_id)
|
||||
if mi is not None:
|
||||
if get_cover and mi.cover is None:
|
||||
mi.cover = self.cover(idx, index_is_id=index_is_id, as_path=True)
|
||||
return mi
|
||||
|
||||
self.gm_missed += 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user