mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
b294583b1f
commit
342a63244f
@ -128,7 +128,7 @@ class ThumbnailCache:
|
||||
def get(self, book_id, width, height, callback):
|
||||
url = thumbnail_url(book_id, width, height)
|
||||
item = self.cache.get(url)
|
||||
if item is None:
|
||||
if not item:
|
||||
img = new Image()
|
||||
item = {'img':img, 'load_type':None, 'callbacks':v'[callback]'}
|
||||
img.onerror = self.load_finished.bind(None, item, 'error')
|
||||
|
Loading…
x
Reference in New Issue
Block a user