1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-09-21 03:39:46 +00:00

Bugfix generate thumbnails on gdrive

This commit is contained in:
Ozzie Isaacs 2024-08-17 09:28:31 +02:00
parent 1be0ff9620
commit fd730f6609
2 changed files with 417 additions and 595 deletions

View File

@ -197,9 +197,11 @@ 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:
# Bubble exception to calling function # Bubble exception to calling function
self.log.debug('Error generating thumbnail file: ' + str(ex)) self.log.debug('Error generating thumbnail file: ' + str(ex))

File diff suppressed because it is too large Load Diff