From cb70882415685ff1a9d6791b9f034885997cca7c Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 2 Sep 2019 19:20:06 +0000 Subject: [PATCH] Fix disk cache with pillow generated webps --- backend.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend.py b/backend.py index e08ec47..3466393 100644 --- a/backend.py +++ b/backend.py @@ -253,6 +253,7 @@ class CalibreDB: lossless=self.webp_config['lossless'] ) + page_data.seek(0) disk_cache.set(f'{volume_id}-{page_number}', page_data) page_data.seek(0) else: