mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
ae0e2cee41
commit
54f320f30d
@ -26,7 +26,7 @@ def ensure_unicode(obj, enc=preferred_encoding):
|
||||
|
||||
def read_cover(mi):
|
||||
if mi.cover_data and mi.cover_data[1]:
|
||||
return
|
||||
return mi
|
||||
if mi.cover:
|
||||
try:
|
||||
with lopen(mi.cover, 'rb') as f:
|
||||
|
Loading…
x
Reference in New Issue
Block a user