mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-06 10:18:27 +01:00
Fix #7165 (Pandigital with Kobo needs images in .thumbnail)
This commit is contained in:
parent
b272f916ac
commit
371db2af99
1 changed files with 6 additions and 0 deletions
|
|
@ -117,6 +117,12 @@ class PDNOVEL_KOBO(PDNOVEL):
|
|||
|
||||
EBOOK_DIR_MAIN = 'eBooks/Kobo'
|
||||
|
||||
def upload_cover(self, path, filename, metadata, filepath):
|
||||
coverdata = getattr(metadata, 'thumbnail', None)
|
||||
if coverdata and coverdata[2]:
|
||||
with open(os.path.join(path, '.thumbnail', filename+'.jpg'), 'wb') as coverfile:
|
||||
coverfile.write(coverdata[2])
|
||||
|
||||
|
||||
class VELOCITYMICRO(USBMS):
|
||||
name = 'VelocityMicro device interface'
|
||||
|
|
|
|||
Loading…
Reference in a new issue