Bugfix generate thumbnails on gdrive

pull/2997/head
Ozzie Isaacs 1 month ago
parent 1be0ff9620
commit fd730f6609

@ -197,9 +197,11 @@ class TaskGenerateCoverThumbnails(CalibreTask):
img.format = thumbnail.format
img.save(filename=filename)
else:
with open(filename, 'rb') as fd:
stream.seek(0)
with open(filename, 'wb') as fd:
copyfileobj(stream, fd)
except Exception as ex:
# Bubble exception to calling function
self.log.debug('Error generating thumbnail file: ' + str(ex))

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save