fix: use first file as epub thumbnail instead of the last. (#1111)

This commit is contained in:
Sola-ris
2025-09-07 22:45:47 +02:00
committed by GitHub
parent 1c5e0016cc
commit b216490311

View File

@@ -885,6 +885,7 @@ class ThumbRenderer(QObject):
):
image_data = zip_file.read(file_name)
im = Image.open(BytesIO(image_data))
break
except Exception as e:
logger.error("Couldn't render thumbnail", filepath=filepath, error=type(e).__name__)