From 481278e9836733c54e2ed7d9c5506e557d217a2d Mon Sep 17 00:00:00 2001 From: Leo Qin Date: Thu, 26 Dec 2024 20:46:37 -0800 Subject: [PATCH 1/2] fix: exclude covers that aren't images --- lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.py b/lib.py index a0e78e7..6172feb 100644 --- a/lib.py +++ b/lib.py @@ -95,7 +95,7 @@ def make_book(path: Path) -> Book: language=language, ) - if cover_image: + if cover_image and cover_image.media_type in IMAGE_MEDIA_TYPES: file_ext = cover_image.file_name.split(".")[-1] file_name = f"{book.id}.{file_ext}" book.thumbnail_name = file_name From 0224e5f1ad6bfc7b6cbafeec6f6f03bed0c62f67 Mon Sep 17 00:00:00 2001 From: Leo Qin Date: Thu, 26 Dec 2024 20:47:13 -0800 Subject: [PATCH 2/2] chore: bump version --- web/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/package.json b/web/package.json index d89a371..57ad1eb 100644 --- a/web/package.json +++ b/web/package.json @@ -1,7 +1,7 @@ { "name": "web", "type": "module", - "version": "0.0.1", + "version": "0.0.2", "scripts": { "dev": "astro dev", "build": "astro build",