This commit is contained in:
Kovid Goyal 2017-04-30 08:54:39 +05:30
parent ae0e2cee41
commit 54f320f30d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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: