mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-27 03:56:17 +01:00
...
This commit is contained in:
parent
f1a22c86a2
commit
7dbaefac22
2 changed files with 4 additions and 1 deletions
|
|
@ -256,6 +256,8 @@ def post_yank_cleanup(self):
|
|||
|
||||
def set_progress_reporter(self, report_progress):
|
||||
'''
|
||||
Set a function to report progress information.
|
||||
|
||||
:param report_progress: Function that is called with a % progress
|
||||
(number between 0 and 100) for various tasks
|
||||
If it is called with -1 that means that the
|
||||
|
|
|
|||
|
|
@ -503,7 +503,8 @@ def upload_cover(self, path, filename, metadata, filepath):
|
|||
|
||||
def upload_book_cover(self, connection, book, source_id):
|
||||
debug_print('PRST1: Uploading/Refreshing Cover for ' + book.title)
|
||||
if not book.thumbnail or not book.thumbnail[-1]:
|
||||
if (not book.thumbnail or isinstance(book.thumbnail, ImageWrapper) or
|
||||
not book.thumbnail[-1]):
|
||||
return
|
||||
cursor = connection.cursor()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue