mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
895942c332
commit
be95815b6c
@ -1056,8 +1056,8 @@ class DeviceBooksModel(BooksModel): # {{{
|
||||
if hasattr(cdata, 'image_path'):
|
||||
img.load(cdata.image_path)
|
||||
elif cdata:
|
||||
if isinstance(cdata, tuple):
|
||||
img.loadFromData(cdata[2])
|
||||
if isinstance(cdata, (tuple, list)):
|
||||
img.loadFromData(cdata[-1])
|
||||
else:
|
||||
img.loadFromData(cdata)
|
||||
if img.isNull():
|
||||
|
Loading…
x
Reference in New Issue
Block a user