mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
SONY driver: Print out cover upload path
This commit is contained in:
parent
9342cdc877
commit
b3a0671a46
@ -291,6 +291,8 @@ class PRS505(USBMS):
|
|||||||
thumbnail_dir = os.path.join(thumbnail_dir, relpath)
|
thumbnail_dir = os.path.join(thumbnail_dir, relpath)
|
||||||
if not os.path.exists(thumbnail_dir):
|
if not os.path.exists(thumbnail_dir):
|
||||||
os.makedirs(thumbnail_dir)
|
os.makedirs(thumbnail_dir)
|
||||||
with open(os.path.join(thumbnail_dir, 'main_thumbnail.jpg'), 'wb') as f:
|
cpath = os.path.join(thumbnail_dir, 'main_thumbnail.jpg')
|
||||||
|
with open(cpath, 'wb') as f:
|
||||||
f.write(metadata.thumbnail[-1])
|
f.write(metadata.thumbnail[-1])
|
||||||
|
debug_print('Cover uploaded to: %r'%cpath)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user