mirror of
https://github.com/janeczku/calibre-web
synced 2025-11-15 22:47:11 +00:00
Bugfix generate thumbnails on gdrive
This commit is contained in:
@@ -197,7 +197,8 @@ class TaskGenerateCoverThumbnails(CalibreTask):
|
|||||||
img.format = thumbnail.format
|
img.format = thumbnail.format
|
||||||
img.save(filename=filename)
|
img.save(filename=filename)
|
||||||
else:
|
else:
|
||||||
with open(filename, 'rb') as fd:
|
stream.seek(0)
|
||||||
|
with open(filename, 'wb') as fd:
|
||||||
copyfileobj(stream, fd)
|
copyfileobj(stream, fd)
|
||||||
|
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
|
|||||||
Reference in New Issue
Block a user