Skip to content

Commit b216490

Browse files
authored
fix: use first file as epub thumbnail instead of the last. (#1111)
1 parent 1c5e001 commit b216490

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tagstudio/qt/previews/renderer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,7 @@ def _epub_cover(filepath: Path) -> Image.Image | None:
885885
):
886886
image_data = zip_file.read(file_name)
887887
im = Image.open(BytesIO(image_data))
888+
break
888889
except Exception as e:
889890
logger.error("Couldn't render thumbnail", filepath=filepath, error=type(e).__name__)
890891

0 commit comments

Comments
 (0)