mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 11:43:16 +02:00
...
This commit is contained in:
parent
cbdb05978b
commit
4b13f6079b
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,6 @@
|
|||
from calibre.devices.kindle.bookmark import Bookmark
|
||||
from calibre.devices.usbms.driver import USBMS
|
||||
from calibre import strftime
|
||||
from calibre.utils.logging import default_log
|
||||
|
||||
'''
|
||||
Notes on collections:
|
||||
|
|
@ -389,6 +388,7 @@ def upload_cover(self, path, filename, metadata, filepath):
|
|||
self.upload_apnx(path, filename, metadata, filepath)
|
||||
|
||||
def upload_kindle_thumbnail(self, metadata, filepath):
|
||||
from calibre.utils.logging import default_log
|
||||
coverdata = getattr(metadata, 'thumbnail', None)
|
||||
if not coverdata or not coverdata[2]:
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue