mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7dbaefac22
commit
256ddda1f9
@ -505,6 +505,8 @@ class PRST1(USBMS):
|
|||||||
debug_print('PRST1: Uploading/Refreshing Cover for ' + book.title)
|
debug_print('PRST1: Uploading/Refreshing Cover for ' + book.title)
|
||||||
if (not book.thumbnail or isinstance(book.thumbnail, ImageWrapper) or
|
if (not book.thumbnail or isinstance(book.thumbnail, ImageWrapper) or
|
||||||
not book.thumbnail[-1]):
|
not book.thumbnail[-1]):
|
||||||
|
# If the thumbnail is an ImageWrapper instance, it refers to a book
|
||||||
|
# not in the calibre library
|
||||||
return
|
return
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user