Commit Graph
148 Commits
Author SHA1 Message Date
Balázs Szücs 475f605f26 feat(database): create opds_user_v2 and book_marks tables with necessary constraints and indexes (#1833)
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2025-12-12 10:14:25 -07:00
Aditya Chandel 1916d6c88c Automatically add newly added books to Kobo shelf (#1826) 2025-12-11 20:21:19 -07:00
aditya.chandel 3fb81a35e4 Add IF EXISTS to personal_rating column drops 2025-12-11 19:01:16 -07:00
Muppetteer 8ee53ff7ba Per user personal ratings (#1820)
* Change personal ratings to be saved per user

* Only copy ratings to users with existing progress records
2025-12-11 18:37:21 -07:00
aditya.chandel 6ecc922408 Fix flyway file versioning 2025-12-10 12:58:14 -07:00
Balázs Szücs f97b23ea14 feat(bookmark): implement bookmark management with CRUD operations (#1795)
* feat(bookmark): implement bookmark management with CRUD operations and UI integration

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

* feat(bookmark): add uniqueness constraint for bookmarks and check for existing bookmarks before creation

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

---------

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2025-12-10 12:51:51 -07:00
Balázs Szücs 3bfece030b feat(search): Add denormalized search_text column for better book search (#1791)
* fix(search): Optimize book search with denormalized search_text column

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

* fix(search): Enhance search text normalization for diacritics in author names

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

* fix(migration): Implement batch processing for populating search text and enhance error handling

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

* fix(search): Manually trigger search text update after author modifications and enhance special character handling

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

* fix(search): Update special character handling to be more permissive in search text normalization

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

* feat(AppMigrationService): add FileService dependency for enhanced file handling

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

* feat(database): add search_text column to book_metadata for improved search functionality

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

* feat(database): add search_text column to book_metadata for improved search functionality

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

* fix(database): correct join condition and ordering in findBooksForMigrationBatch query

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

---------

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2025-12-10 12:51:18 -07:00
Aditya Chandel ad0a99bcbc Add support for uploading and assigning custom SVG icons to libraries… (#1788)
* Add support for uploading and assigning custom SVG icons to libraries and shelves

* Add few default icons
2025-12-07 15:16:22 -07:00
Andrew Roberts 6eae9b88dc Configureable delimiter for remote auth groups (#1782)
* add groups-delimiter (REMOTE_AUTH_GROUPS_DELIMITER) for parsing groups from a remote auth source

* added doc
2025-12-06 20:20:52 -07:00
Aditya Chandel ff17b74adb Downgrade Java, Spring Boot and Gradle (#1696)
* Revert Spring Boot 4

* Downgrade Java from 25 to 21 and Gradle from 9 to 8
2025-11-30 16:39:56 -07:00
CounterClopsandAditya Chandel dfb73d50d9 Feature: Add EPUB conversion support for CBX files to Kobo Sync (#1538)
* Feature/kobo sync cbx support (#3)

* Feature: Add CBX syncing support to Kobo sync (#2)

* feat: add cbx sync support

* fix: phrasing of setting description to align with CBX terminology

* fix: resolve issue with CBX setting persistence

* fix: updated dev docker compose to align with Dockerfile

* feat: add cbx files as allowed entitlements

* fix: relax tomcat query characters for kobo sync

* fix: remove hardcoded epub restrictions

* fix: reduce image size and resolve relative content paths

* fix: resolve issues with the image file encoding

* feat: add rar and cb7 support

* feat: bring generated epub more in line with epub standard

* fix: resolve issues with extra metadata fields

* fix: make css background colour white to improve e-ink performance

* cleanup: code comments

* feat: add cbx unit tests

* fix: update zipfile to use builder pattern as current method is deprecated

* fix: remove comments

* fix: replace regex pattern to a simpler check

* fix: remove unused imports

* fix: update epub template to use standard language string

* fix: missing line end on css

* fix: remove duplicate query characters

* fix: grammer issue

* fix: resolve typo in the entitlement service test

* fix: redundant imports and update long types

* chore: update test descriptions for cbx conversion

* fix: add check for larger images in archive files. unlikely to occur.

* fix: merge temp dir logic for the book download

* fix: update kobo entitlement to always report the format as epub3

* fix: implement suggested changes around javadocs and some edge cases to handle gracefully

* chore: cleanup variable names to be clearer in download service

* feat: change function to extract to disk instead of storing images in memory

* fix: add temp file clean up into the conversion service

* fix: add visual divider to seperate CBX and EPUB settings

* fix: update lambdas to use method references

* fix: reword setting description for cbx to epub sync

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-11-30 09:53:26 -07:00
aditya.chandel e47046aa20 Fix flyway versioning 2025-11-30 09:49:20 -07:00
CounterClops 3ef5b60ed6 Feat: Improve kobo reading state sync logic for better bidirectional support (#1644)
* feat: kobo sync improvements (push changes from booklore, and properly delete kobo data on reset)

* fix: issues with sync race conditions and improve readability

* fix: update function names to be clearer and more explicit

* fix: move partially_read to reading status mapping

* fix: make the bufferwindow more explicit in the unsynced progress check

* chore: add unit tests for additional sync logic

* fix: improve bi-directional logic to account for changes in progress and status

* chore: add additional tests to check the kobo sync logic and remove redundant tests
2025-11-30 09:44:11 -07:00
Aditya Chandel 3a9cb965e3 Fix unique file constraint to allow identical filenames in different sub-paths (#1668)
* Upgrade Spring Boot to version 4.0.0

* Fix flyway config

* Fix unique file constraint to allow identical filenames in different sub-paths
2025-11-28 14:10:51 -07:00
Aditya Chandel d647fe401e Upgrade Spring Boot to version 4.0.0 (#1667)
* Upgrade Spring Boot to version 4.0.0

* Fix flyway config
2025-11-28 14:10:14 -07:00
aditya.chandel a0dcfe68c2 Resolve Flyway migration version conflict 2025-11-21 00:43:22 -07:00
CounterClops 7ebdc7b106 Feature: Sync reading progress from Kobo in-built reader (#1541)
* feat: add kobo reading progress sync

* fix: remove old variable references

* fix: avoid changing koreader behaviour

* fix: resolve typo in koreader progress

* fix: remove link between booklore progress and kobo sync progress

* feat: add unit tests for kobo reading status sync

* fix: remove unnecessary conversion value for kobo progress

* fix: resolve issue with kobo_progress beiong optional in template

* fix: update entitlement to provide existing reading progress back to kobo on sync

* fix: use stored bookmark before creating new bookmark

* fix: update default thresholds to full numbers. kobo doesn't report progress with any decimal places

* chore: update unit tests

* fix: remove decimal places in kobo settings progress threshold
2025-11-21 00:17:57 -07:00
Chris Debenham 79ab4ec5a1 Add ability to mark magic shelves as public (#1489)
Adds a checkbox to the create/edit magic shelf dialog to set the shelf
as public.
If public then it shows up for all users.
Only admins can edit public shelves (edit options disabled for
non-admin)
2025-11-20 21:17:10 -07:00
Aditya Chandel 5fe62ac576 Implement task scheduling system (#1427)
* Implement task scheduling system

* Remove tests
2025-10-23 22:49:42 -06:00
Aditya Chandel d7f8fc43a6 Add the /api prefix to the Swagger endpoints so it works correctly behind the internal Nginx. (#1418) 2025-10-22 21:46:03 -06:00
Aditya Chandel 8d0d23ba85 Remove obsolete Email v1 implementation (#1365) 2025-10-16 13:20:11 -06:00
Aditya Chandel ed4d9e5321 Allow admins to optionally share email providers with users (#1359) 2025-10-15 21:46:27 -06:00
Aditya Chandel 675bed1a65 Optimize and refine how book similarity is calculated (#1356) 2025-10-15 14:45:56 -06:00
aditya.chandel a8424e8592 Add option (env variable) to force disable OIDC 2025-10-15 10:47:59 -06:00
Aditya Chandel a98c0dc801 Implement Email V2 with support for user-specific providers and recipient lists (#1352) 2025-10-15 09:05:42 -06:00
Aditya Chandel 54a8bacccd Add “Fit Mode” and “View Mode” options to CBX reader (#1327) 2025-10-12 01:02:01 -06:00
Aditya Chandel b3b63cce74 Add task management panel with live task status and controls (#1322) 2025-10-11 20:08:56 -06:00
Aditya Chandel 23aa45b264 Implement EPUB page spread feature for desktop (#1267)
* Implement EPUB page spread feature for desktop

* Implement EPUB page spread feature for desktop
2025-10-05 10:28:16 -06:00
Aditya Chandel 41f68a6075 Add support for moods and tags in book metadata (#1262) 2025-10-04 19:02:25 -06:00
Aditya Chandel b46a5c2362 Fix: Kepubify not working on arm linux docker install (#1192) 2025-09-22 18:48:21 -06:00
Aditya Chandel 1008a9476b Support configurable background image and transparency (#1126) 2025-09-09 22:18:52 -06:00
aditya.chandel 0d95817ae8 OPDS v2 fixes 2025-08-31 08:45:59 -06:00
aditya.chandel 443dcad59a Implement OPDS v2 to return user-specific book feeds 2025-08-30 17:02:35 -06:00
Aditya Chandel 09bc2f6e9e Feature/999 add high resolution cover support upload storage and search (#1006)
* Add high-resolution cover support: upload, storage, and search

* Disable tests until fixed
2025-08-27 21:47:27 -06:00
Alexander PuzyniaandAditya Chandel 694ee11540 Book additional files support library (3/3) (#872)
* feat(api/model): add new entity BookAdditionalFileEntity

* feat(api/db): add book additional file repository

* feat(api/db): add migration

* test(api/db): add book additional file repository test

* test(api/db): add book additional file repository tests for hash uniqueness

* feat(api/domain): add support to additional file model

* feat(api): add additional files controller

* refactor(api): move addAdditionalFile to FileUploadService as uploadAdditionalFile method

* feat(service): search book by additional file

* feat(services): process deleted additional files with ability to promote alternative formats to book instead of deleting them

* refactor(util): use common code to resolve patter for entity and domain object

* feat(service): move additional files

* test(service): test move additional files along with book itself

* feat(ui/domain): add alternativeFormats and supplementaryFiles to book model

* feat(ui/domain): add download additional file method to book service

* refactor(api/domain): extract FileInfo interface with common fields

Allow to share the same interface thet is implemented by AdditionFile and Book

* feat(ui): show multiple download options

* feat(ui/domain): add delete additional file method to book service

* feat(ui): add delete additional file ui

* feat(ui): add additional-file-uploader.component

* feat(ui/domain): add uploadAdditionalFile to the service

* feat(ui): add Upload File menu item

* feat(ui): show supplementary files in download menu item

* feat(ui): show supplementary files in delete file menu item

* feat(ui): book card allow to select single file to download or delete

* feat(api/domain): add scan mode and default book format to the library

* feat(ui): select scan mode and default book format

* feat(api): create/update library settings

* refactor(services): get processor based on scan mode

* feat(services): read all files if processor supports supplimentary files

* fix(services): detectNewBookPaths should check additional files as well

* feat(services): implement folder as book file processor

* test(service): add tests for FolderAsBookFileProcessor

* feat(services): allow follow links for search library files

* test(library): add tests for folder as book file processor

* refactor(library): use Path instead of String for directory path

* feat(library): sort directories before processing

* feat(library): reuse library file book type

* fix(library): do not add additional format if it is used in another book

* test(library): test same hashes files

* refactor(library): simplify FolderAsBookFileProcessor

* test(library): add test with deep folder structure

* test(library): add additional files to existing book

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-08-27 08:20:29 -06:00
Alexander Puzynia b81a8d1422 Book additional files support (1/3) (#868)
* feat(api/model): add new entity BookAdditionalFileEntity

* feat(api/db): add book additional file repository

* feat(api/db): add migration

* test(api/db): add book additional file repository test

* test(api/db): add book additional file repository tests for hash uniqueness

* feat(api/domain): add support to additional file model

* feat(api): add additional files controller

* refactor(api): move addAdditionalFile to FileUploadService as uploadAdditionalFile method

* feat(service): search book by additional file

* feat(services): process deleted additional files with ability to promote alternative formats to book instead of deleting them

* refactor(util): use common code to resolve patter for entity and domain object

* feat(service): move additional files

* test(service): test move additional files along with book itself
2025-08-27 08:11:04 -06:00
aditya.chandel 19e1b75325 Fix server.port error 2025-08-25 16:17:10 -06:00
Aditya Chandel fe8925f65e feat(kobo): add optional EPUB → KEpub conversion for Kobo downloads (#969) 2025-08-23 20:51:04 -06:00
aditya.chandel 6e6861b329 Kobo Phase 1: Enable Book Transfer/Sync 2025-08-22 22:57:03 -06:00
aditya.chandel 800cc4054f Support adding private, user-specific notes to books 2025-08-13 15:54:45 -06:00
aditya.chandel c660497e0b Implement public review fetching from metadata providers 2025-08-13 13:02:53 -06:00
aditya.chandel 978bd05b1e Add per-library customizable file naming patterns 2025-08-10 11:27:28 -06:00
Aditya Chandel 9ae1c6e2dc Add koreader sync support for book progress tracking 2025-08-08 09:38:20 -06:00
Rprasad2400andAditya Chandel 46f86deb24 Feature: Add Comicvine to metadata providers. (#804)
* added comcivine
* updated comicvine schema
* added comic vine support
* changed SQL changes
* fixed init provider bug
* updated changes for Flyway migration.

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-08-06 11:29:12 -06:00
astrodad 21f23ca6a2 Feature: Add support for recording when a book is finished, so that users can create Magic Shelves based on this information. (#803)
* Added migration for new field in user_book_progress table
* Added ability to set date finished when book status changes to read, and reset date finished when book status changes to another value
* Added ability to use date published in a Magic Shelf
2025-08-04 21:12:19 -06:00
aditya.chandel 63518b7eb8 Implement magic shelves with dynamic rule-based filters 2025-07-28 07:59:00 -06:00
aditya.chandel 177528e640 Implement Bookdrop: Watch folder for file drops and auto-process uploads 2025-07-19 11:05:59 -06:00
aditya.chandel 116f0c950e Implement interactive metadata review for batch updates, with progress tracking and a unified notification system 2025-07-13 23:32:08 -06:00
aditya.chandel 5afe0a1b0a feat: move read status tracking to per-user progress entity
- Removed global `readStatus` field from `BookEntity`
- Added `read_status` column to `UserBookProgressEntity` for per-user tracking
- Added Flyway migration to introduce `read_status` column to `user_book_progress`
2025-07-08 17:06:45 -06:00
aditya.chandel 841e359b92 Support File Move Operations with Watcher Refactor for Accurate Tracking 2025-07-04 11:19:23 -06:00