From 320e227905ac4a0f520fb11e117d14e1d0e94079 Mon Sep 17 00:00:00 2001 From: adityachandelgit <> Date: Fri, 28 Mar 2025 13:51:17 -0600 Subject: [PATCH 1/4] Fix epub bottom getting cut off --- .../epub-viewer/component/epub-viewer.component.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/booklore-ui/src/app/book/components/epub-viewer/component/epub-viewer.component.scss b/booklore-ui/src/app/book/components/epub-viewer/component/epub-viewer.component.scss index 8eff16afb..5d8ff30be 100644 --- a/booklore-ui/src/app/book/components/epub-viewer/component/epub-viewer.component.scss +++ b/booklore-ui/src/app/book/components/epub-viewer/component/epub-viewer.component.scss @@ -8,15 +8,16 @@ } .epub-viewer-container { - overflow: hidden; + display: flex; + flex-direction: column; height: 100vh; + overflow: hidden; } #epubContainer { width: 100%; height: 100%; overflow: hidden; - position: relative; } .menu-toggle-button, From 125eaed345ca8d8b9a6797b64cf2eafe0f0e8bda Mon Sep 17 00:00:00 2001 From: adityachandelgit <> Date: Sat, 5 Apr 2025 13:40:18 -0600 Subject: [PATCH 2/4] Add missing mariadb creds --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 248417988..dd7ea2cd6 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ services: - PUID=1000 # User ID to ensure correct file permissions - PGID=1000 # Group ID to ensure correct file permissions - TZ=Etc/UTC # Set the timezone for logs and system operations + - MYSQL_ROOT_PASSWORD=your_secure_password # Replace with a strong password for the database (must be same as in mariadb container) depends_on: mariadb: condition: service_healthy @@ -65,7 +66,7 @@ services: - PUID=1000 # Ensure correct file ownership for database files - PGID=1000 # Ensure correct file ownership for database files - TZ=Etc/UTC # Set the timezone for logs and database operations - - MYSQL_ROOT_PASSWORD=your_secure_password # Replace with a strong password for the database + - MYSQL_ROOT_PASSWORD=your_secure_password # Replace with a strong password for the database (must be same as in mariadb booklore) volumes: - /your/local/path/to/mariadb/config:/config # Replace the left side before colon with your system path, keep the right side unchanged restart: unless-stopped From 5e2305b492f21934ebeb91d0bc4e85e8e6850db7 Mon Sep 17 00:00:00 2001 From: adityachandelgit <> Date: Sat, 5 Apr 2025 14:07:40 -0600 Subject: [PATCH 3/4] no message --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index dd7ea2cd6..ace35457e 100644 --- a/README.md +++ b/README.md @@ -45,34 +45,34 @@ services: image: ghcr.io/adityachandelgit/booklore-app:latest container_name: booklore environment: - - PUID=1000 # User ID to ensure correct file permissions - - PGID=1000 # Group ID to ensure correct file permissions - - TZ=Etc/UTC # Set the timezone for logs and system operations - - MYSQL_ROOT_PASSWORD=your_secure_password # Replace with a strong password for the database (must be same as in mariadb container) + - PUID=1000 + - PGID=1000 + - TZ=Etc/UTC + - MYSQL_ROOT_PASSWORD=your_secure_password # Use a strong password; must match the one in the mariadb service depends_on: mariadb: condition: service_healthy ports: - "6060:6060" volumes: - - /your/local/path/to/booklore/data:/app/data # Replace the left side before colon with your system path, keep the right side unchanged - - /your/local/path/to/booklore/books:/books # Replace the left side before colon with your book storage path, keep the right side unchanged + - /your/local/path/to/booklore/data:/app/data + - /your/local/path/to/booklore/books:/books restart: unless-stopped mariadb: image: lscr.io/linuxserver/mariadb:11.4.5 container_name: mariadb environment: - - PUID=1000 # Ensure correct file ownership for database files - - PGID=1000 # Ensure correct file ownership for database files - - TZ=Etc/UTC # Set the timezone for logs and database operations - - MYSQL_ROOT_PASSWORD=your_secure_password # Replace with a strong password for the database (must be same as in mariadb booklore) + - PUID=1000 + - PGID=1000 + - TZ=Etc/UTC + - MYSQL_ROOT_PASSWORD=your_secure_password # Use a strong password; must match the one in the booklore service volumes: - - /your/local/path/to/mariadb/config:/config # Replace the left side before colon with your system path, keep the right side unchanged + - /your/local/path/to/mariadb/config:/config restart: unless-stopped healthcheck: test: ["CMD", "mariadb-admin", "ping", "-h", "localhost"] - interval: 5s + interval: 5s timeout: 5s retries: 10 ``` From 87f40733d7c34c665a133bfe84e7f074c1042a55 Mon Sep 17 00:00:00 2001 From: adityachandelgit <> Date: Wed, 9 Apr 2025 18:04:09 -0600 Subject: [PATCH 4/4] Extract and set the series name and index for EPUBs --- .../service/fileprocessor/EpubProcessor.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/booklore-api/src/main/java/com/adityachandel/booklore/service/fileprocessor/EpubProcessor.java b/booklore-api/src/main/java/com/adityachandel/booklore/service/fileprocessor/EpubProcessor.java index 92f2d91b3..5d66fb185 100644 --- a/booklore-api/src/main/java/com/adityachandel/booklore/service/fileprocessor/EpubProcessor.java +++ b/booklore-api/src/main/java/com/adityachandel/booklore/service/fileprocessor/EpubProcessor.java @@ -137,6 +137,21 @@ public class EpubProcessor implements FileProcessor { }); } + String seriesName = epubMetadata.getMetaAttribute("calibre:series"); + if (seriesName != null && !seriesName.isEmpty()) { + bookMetadata.setSeriesName(seriesName); + } + + String seriesIndex = epubMetadata.getMetaAttribute("calibre:series_index"); + if (seriesIndex != null && !seriesIndex.isEmpty()) { + try { + double indexValue = Double.parseDouble(seriesIndex); + bookMetadata.setSeriesNumber((int) indexValue); + } catch (NumberFormatException e) { + log.warn("Unable to parse series number: {}", seriesIndex); + } + } + bookCreatorService.addAuthorsToBook(getAuthors(book), bookEntity); bookCreatorService.addCategoriesToBook(epubMetadata.getSubjects(), bookEntity); }