Commit Graph
228 Commits
Author SHA1 Message Date
ACX 4d2eace655 fix comic book deletion failing with transient entity error (#3000) (#3067) 2026-02-27 01:49:10 -07:00
ACX f9132fea12 add library health indicator in sidebar (#3005) (#3066) 2026-02-27 01:32:27 -07:00
ACX 0c23424f68 fix medium and high severity security vulnerabilities (#3062) 2026-02-26 23:43:30 -07:00
ACX d2075fd371 fix medium severity security vulnerabilities (#3061) 2026-02-26 23:01:05 -07:00
ACX 27e86beb9e fix NPE when re-attaching a book file to a physical book after deleting the previous one (#3056) 2026-02-26 21:00:09 -07:00
ACX bb6b24eb89 trim trailing/leading whitespace in metadata fields (#1390) (#3025) 2026-02-26 08:53:37 -07:00
ACX 3e374a197f add detach book file feature and fix attach not respecting move preference (#3024) 2026-02-26 08:16:12 -07:00
ACX e53c545dcb Fix audiobook chapter extraction for M4B/M4A formats (#2976)
* Fix audiobook chapter extraction for M4B/M4A formats

* Add unit tests for ffprobe service, chapter backfill, and audiobook rescan

* Add collapsible chapter list to audiobook details section
2026-02-25 18:35:46 -07:00
ACX bc844fc57e Apply content restrictions to OPDS and Komga feeds (#2889) (#2937) 2026-02-25 17:51:15 -07:00
ACX a8c356297c fix attach file without move when source/target have different library paths (#2999) 2026-02-25 16:17:34 -07:00
ACXandacx10 e3b0501935 Fix Kobo sync URLs missing port when Host header omits it (#2986)
* Fix Kobo sync URLs missing port when Host header omits it (#2980)

* bump hono to fix high severity audit vulnerability

---------

Co-authored-by: acx10 <acx10@users.noreply.github.com>
2026-02-25 12:48:50 -07:00
ACX 9ca44a5a03 Vendor unrar binaries for Alpine 3.23 compatibility (#2950) 2026-02-24 23:12:29 -07:00
ACX 53897e684d Fix metadata match weights and provider fields DTO mismatch with UI (#2947) 2026-02-24 21:58:05 -07:00
Balázs Szücs f3fffeadce refactor(misc): Harden request handling, tighten defaults, and pin CI deps (#2878)
* refactor(misc): Harden request handling, tighten defaults, and pin CI dependencies

* feat(auth): normalize usernames for login rate limiting

* refactor(epub): fix XML document builder creation

* feat(http): enhance image download with redirect handling and DNS rebinding protection

* chore: upgrade Node.js version to 24 and add frontend dependency audit step

* feat(auth): refactor username normalization for login rate limiting and enhance image download security

* fix(metadata): simplify JAXB validation event handling by using direct import

* chore(pipeline): remove unnecessary --force flag from npm ci and format audit step

* chore(pipeline): streamline frontend dependency audits and add validation step

* fix(image): improve error handling for image processing and download, enforce pixel limits

* test(image): update tests

* fix(icon): update DOMPurify import and replace deprecated theme package

* fix(imports): update theme package imports and format code for consistency

* fix(cors): update allowed origins configuration to support wildcard and trim whitespace
2026-02-24 12:43:14 -07:00
ACX 5d0d21d9c4 Smarter AUTO_DETECT grouping for audiobook series folders and multi-part files (#2900) 2026-02-23 23:34:57 -07:00
ACX 6c8da7d826 Fix metadata match weights failing to deserialize when fields are null (#2886) 2026-02-23 15:49:28 -07:00
ACX c4e6d9eb68 Fix Kobo download/image URLs using wrong port behind reverse proxy (#2875) 2026-02-23 15:01:20 -07:00
ACXandacx10 88622a66dd feat: add book distributions endpoint for mobile stats (#2855)
* feat: add book distributions endpoint for mobile stats

Add GET /api/v1/user-stats/book-distributions returning rating,
reading progress, and read status distributions. Progress percentages
are coalesced across all sync sources and bucketed into 6 ranges.

* fix(test): use stable date for thisPeriod_week test to avoid Monday boundary flake

The test used Instant.now().minus(1 day) which falls in the previous
ISO week when CI runs on Monday (UTC). Use a date guaranteed to be
within the current week instead.

---------

Co-authored-by: acx10 <acx10@users.noreply.github.com>
2026-02-22 19:29:21 -07:00
ACX 08bfafe544 Add author metadata fetching via Audnexus with browser, detail, and editor pages (#2843) 2026-02-22 10:02:56 -07:00
ACXandacx10 ead04b3f1a feat(mobile): scope filter options to library, shelf, or magic shelf (#2838)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
2026-02-21 12:32:44 -07:00
ACX b28fa3c994 Fix shelf-based filter cartesian product in rule evaluator (#2822) (#2837) 2026-02-21 12:28:18 -07:00
ACX b2dbd57151 Fix CBR/CB7 to CBZ conversion losing track of file path (#2829) (#2835) 2026-02-21 11:48:33 -07:00
ACX 38d7aa1150 Add moveFiles option to attach/merge and per-book delete in duplicate merger (#2833)
* Add moveFiles option to attach/merge and per-book delete in duplicate merger

* Remove single-format restriction from attach-to-book action
2026-02-21 11:36:31 -07:00
ACX d515849b71 Fix read status NULL progress handling in rule evaluator (#2821)
* Fix DOES_NOT_CONTAIN NULL handling for READ_STATUS and add null-progress tests

* Fix IS_EMPTY/IS_NOT_EMPTY parity for readStatus in FE rule evaluator
2026-02-20 16:30:30 -07:00
ACXandacx10 2223b18d0f Add duplicate book detection/merge and fix format-related data loss (#2820)
* Add duplicate book detection and merge feature

* Remove delta sync, ETag, and IndexedDB caching

---------

Co-authored-by: acx10 <acx10@users.noreply.github.com>
2026-02-20 16:09:45 -07:00
ACXandacx10 9ace45a8ea Fix null collection errors when processing PDFs, audiobooks, and physical books (#2817)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
2026-02-19 23:11:37 -07:00
ACX 303fb905d6 Fix additional file uploader bugs and move formats to metadata header (#2816) 2026-02-19 22:51:58 -07:00
ACXandacx10 2f6e857005 Fix IllegalArgumentException in BookRuleEvaluatorService numeric comparisons and add tests (#2795)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
2026-02-18 14:27:16 -07:00
ACXandacx10 4878065eff Fix email provider creation failing due to null shared field (#2794)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
2026-02-18 13:42:17 -07:00
ACXandacx10 bb0609a78a Add bidirectional Kobo reading progress sync (#2791)
* Add bidirectional Kobo reading progress sync

* Gate all two-way sync paths behind the toggle

* Add comprehensive unit tests for Kobo services

---------

Co-authored-by: acx10 <acx10@users.noreply.github.com>
2026-02-18 13:32:12 -07:00
arjunsrinivasan1997 f4d1ba7aae feat(bookdrop): add ability to poll the bookdrop folder (#2768)
* feat(bookdrop): add ability to poll the bookdrop folder

* fix(bookdrop): Modify bookdrop scan behavior to only enqueue newly seen files to reduce duplicate log messages
2026-02-17 20:19:42 -07:00
ACXandacx10 4062f1f83f Fix audit log description overflow crashing bulk metadata refresh (#2778) (#2783)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
2026-02-17 15:59:52 -07:00
ACX c9551ef4ab feat: add audit log system for tracking admin-significant actions (#2759) 2026-02-15 00:24:25 -07:00
ACX 0899b99188 feat: add metadata presence filter to magic shelf (#2757) 2026-02-14 21:41:03 -07:00
ACX 218befb3b5 feat: add grouped field dropdown and composite fields to magic shelf (#2750) 2026-02-14 15:47:34 -07:00
ACX 6b0cc27d1b feat: add else clause and value modifiers to file naming patterns (#2724) 2026-02-12 22:17:55 -07:00
ACX 9ed6a3fe72 feat(reader): add PDF annotations, Range streaming, and optimized chunk loading (#2701) 2026-02-11 16:51:59 -07:00
Balázs Szücs 9444a544f9 feat(cbx-reader): enhance ZIP archive handling with Unicode support and fallback mechanisms (#2593)
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2026-02-10 09:30:31 -07:00
Balázs Szücs 697de9052f feat(metadata): add custom metadata write to file support for moods, tags, ratings, and external IDs in PDF, and CBZ (#2552)
* feat(metadata): add BookLore custom metadata support for moods, tags, ratings, and external IDs in EPUB, PDF, and CBZ

- Introduce BookLoreSchema for XMP custom fields and BookLoreMetadata for namespace constants
- Write and extract moods, tags, ratings, and external IDs (Goodreads, Amazon, Hardcover, Lubimyczytac, RanobeDB, Google) in EPUB, PDF, and CBZ metadata
- Store BookLore custom fields in ComicInfo.xml notes and Web fields for CBZ
- Add BookLore fields to XMP metadata in PDF, including moods and tags as separate fields
- Update extractors and writers to handle BookLore fields and ensure separation of categories, moods, and tags
- Add comprehensive tests for BookLore metadata extraction and writing

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(metadata): standardize hardcoverBookId as String and improve identifier handling

- Change hardcoverBookId field and related methods to use String instead of Integer for consistency across extractors and writers
- Update metadata copy helpers and tests to reflect new hardcoverBookId type
- Improve identifier prefix handling in EPUB and PDF extractors to be case-insensitive and trim whitespace
- Allow PDF keywords to be split by comma or semicolon
- Rename TaskCreateRequest#getOptions to getOptionsAs for clarity and update usages
- Adjust series number writing in EPUB metadata to preserve decimals when needed

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(metadata): standardize usage of tags over categories and improve BookLore field extraction

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat(metadata): add rating and ratingLocked fields to BookMetadata and improve PDF metadata extraction

- Add rating and ratingLocked fields to BookMetadata for enhanced rating support
- Refine PDF keyword extraction to handle both comma and semicolon delimiters
- Ensure ISBN fields are only set if cleaned values are non-blank
- Use temp file only stream cache when loading PDFs for metadata writing

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat(metadata): implement ComicInfo.xml writing via JAXB, ensure XSD compliance and add tests for CBX metadata persistence

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat(metadata): enhance metadata extraction with additional identifiers and improve parsing logic

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat(metadata): improve metadata handling by ensuring descriptions are prioritized and enhancing keyword management for PDF compatibility

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(metadata): simplify Pages class structure in ComicInfo.java

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat(metadata): refine PDF metadata writing by isolating categories for legacy compatibility and removing moods and tags from keywords

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat(metadata): enhance PDF metadata extraction and writing with support for additional fields and improved handling of series information

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat(metadata): enhance PDF metadata extraction and writing with support for additional fields and improved handling of series information

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat(metadata): implement secure XML parsing utility and enhance metadata extraction with improved GTIN validation and debug logging

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(metadata): update package structure to align with new organization naming conventions

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* fix(epub-metadata): streamline cover image extraction logic and improve error handling

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat(metadata): enhance PDF and comic metadata extraction with additional fields

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat(metadata): migrate to tools.jackson for JSON processing in sidecar metadata handling

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* fix(epub-metadata): streamline cover image extraction and enhance XML parsing security

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

---------

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2026-02-10 09:29:25 -07:00
Balázs Szücs 45dba44833 fix(epub-metadata): enhance cover extraction with heuristic fallbacks for manifest and ZIP entries (#2636)
* fix(epub-metadata): enhance cover extraction with heuristic fallbacks for manifest and ZIP entries

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* test(epub-metadata-extractor): add heuristic cover creation methods for EPUB files

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

---------

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2026-02-09 16:46:50 -07:00
ACXandacx10 ffd4615b87 feat: comic metadata picker, lazy-load providers, and UI improvements (#2679)
* feat: add comic metadata support to metadata picker and fix Comicvine parser

* feat: lazy-load Comicvine issue details on selection

* feat: lazy-load detail metadata for Amazon, GoodReads, and Audible parsers

* fix: prevent spurious comic_metadata row creation for non-comic books

* fix: extract rich previews from Audible search and reorder picker sections

* feat: redesign metadata editor layout with collapsible sections and boolean selects

* fix: implement per-field comic metadata locks replacing grouped locks

* feat: add comic metadata filters and fix visibleFilters backend support

* fix: use human-readable role labels in comic creator filter

* fix: auto-populate comic metadata from ComicVine during metadata fetch

* refactor: clean up ComicvineBookParser remove duplication and comments

* fix: use ComicMetadata webLink for ComicVine favicon URL

* fix: cache library options to prevent Set All dropdowns from resetting

* fix: stream book content from disk instead of loading entire file into memory

* fix: increase max visible filters from 15 to 20

* feat: replace filter multiselect with drag-and-drop reorderable list

* fix: use audiobook-specific cover paths and cache busting for audiobook thumbnail updates

* chore: enforce mandatory screenshots and stricter testing requirements in PR template

* fix: update BookServiceTest to match Resource return type after streaming change

---------

Co-authored-by: acx10 <acx10@users.noreply.github.com>
2026-02-09 16:43:53 -07:00
Balázs Szücs 108d94c0f7 feat(api, build): Upgrade to Java 25, Gradle 9, and Spring Boot 4, Jackson 3 (#2597)
* refactor: simplify RestTemplate and ObjectMapper configurations, add no-args constructors to progress classes

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* chore: update Gradle and Java versions in Docker configuration and build files

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* test: enhance header assertions in tests and add spring-boot-test-autoconfigure dependency

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(tests): migrate to SpringBootTest and update entity management in test cases

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* test: update test property configurations for H2 database in Healthcheck and BookOpds repository tests

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* test: clean up HealthcheckControllerTest by removing unnecessary whitespace and comments

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* test: remove unnecessary whitespace in HealthcheckControllerTest

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* chore: downgrade Flyway version from 12.0.0 to 11.14.1 in build.gradle

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* chore: downgrade Flyway version from 12.0.0 to 11.14.1 in build.gradle

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: add @DependsOn annotation for Flyway in MultipartConfig

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: add @DependsOn annotation for Flyway in LibraryService

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: add test configuration for Flyway in HealthcheckControllerTest
chore: remove unused path variable in deleteLibrary method of LibraryService

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: configure Flyway migration and update test configuration

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: enable remote debugging in bootRun configuration

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: update Flyway version and enhance ObjectMapper configuration

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: remove @DependsOn annotation for Flyway in MultipartConfig and LibraryService

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: add NoArgsConstructor and AllArgsConstructor annotations to DTO classes

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: add NoArgsConstructor and AllArgsConstructor annotations to FileProcessResult, MetadataUpdateContext, and MetadataUpdateWrapper classes

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: add DependsOnDatabaseInitialization annotation to MultipartConfig, AppSettingService, LibraryService, and JwtSecretService classes

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: add DependsOnDatabaseInitialization annotation to MultipartConfig and CronService classes

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: implement lazy initialization and thread safety for JWT secret retrieval

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: add Flyway dependency and update LibraryService initialization to use ApplicationReadyEvent

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor: remove outdated comments from JwtSecretService class

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor: migrate from com.fasterxml.jackson to tools.jackson for JSON processing

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor: remove unused ObjectMapper bean and related imports from JacksonConfig

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: configure async support with VirtualThreadTaskExecutor in WebMvcConfig

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: enhance application performance with virtual threads and HTTP/2 support

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: add JsonSetter annotation to skip null values for triggeredByCron field

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: add triggeredByCron field to TaskCreateRequest and initialize in task management

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat: enable Spring Data web support with DTO serialization in WebMvcConfig

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(UserDefaultsService): simplify class structure and remove unused methods

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(BookOpdsRepositoryDataJpaTest): simplify test setup and use TestEntityManager

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(BookOpdsRepositoryDataJpaTest): update test configuration and simplify entity persistence

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor: update Jackson dependencies and migrate to Jackson 3

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(build.gradle): update jackson-annotations dependency to use Jackson 3 BOM

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(BookOpdsRepositoryDataJpaTest): remove unused ObjectMapper bean definition

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(LibraryService): simplify library deletion logic

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

---------

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2026-02-08 10:15:16 -07:00
ACXandacx10 e462b6c197 feat(sidecar): add sidecar JSON metadata file support (#2657)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
2026-02-08 09:31:18 -07:00
WorldTeacher d93f1b8dfb fix(file naming): follow documentation... (#2642)
... and add a leading zero to seriesIndex
2026-02-07 08:36:17 -07:00
Giroux Arthur 14236299f2 feat(icons): Made icons for libraries and shelves optional with no default icons. (#2599)
* feat(icons): Made icons for libraries and shelves optional with no default icon displayed.

* Added tests for making sure the API handles nullable icons for Shelves and Libraries.

* Fixed some issues identified during PR review.

* Rebased on develop.
2026-02-07 08:25:34 -07:00
PhasecoreX a941ef51b5 fix(hardcover-sync): Don't send repeated read status to Hardcover.app (#2609)
* fix(hardcover-sync): Don't send repeated read status to Hardcover.app

* fix(hardcover-sync): Use progress percentage instead of read status

* fix(hardcover-sync): Add test cases

* fix(hardcover-sync): Also check read status for changes
2026-02-07 08:22:28 -07:00
Balázs Szücs cd428c6fe3 fix(file-move): implement transaction management for file moves and rollback on failure (#2592)
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2026-02-06 13:11:10 -07:00
ACX 9f9c762180 feat(content-restrictions): add age rating and content rating support (#2619) 2026-02-05 17:10:44 -07:00
Balázs Szücs c7dd23ed85 fix(file-move): implement transaction management for file moves and rollback on failure (#2588)
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2026-02-05 14:01:34 -07:00
xcashyandACX 539734a3cf feat(kobo-sync): Sync Shelves and Magic Shelves to Kobo Tags (#2236)
* feat(kobo-sync): sync shelves and magic shelves to kobo tags

* refactor(kobo-sync): replace `EntityNotFoundException` with `NoSuchElementException`, update timestamps handling, and add unit tests for `generateTags`

---------

Co-authored-by: ACX <8075870+acx10@users.noreply.github.com>
2026-02-05 13:59:08 -07:00