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>
This commit is contained in:
@@ -90,6 +90,10 @@ dependencies {
|
||||
implementation 'org.tukaani:xz:1.11' // Required by commons-compress for 7z support
|
||||
implementation 'org.apache.commons:commons-text:1.15.0'
|
||||
|
||||
// --- XML Support (JAXB) ---
|
||||
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.4'
|
||||
runtimeOnly 'org.glassfish.jaxb:jaxb-runtime:4.0.6'
|
||||
|
||||
// --- Template Engine ---
|
||||
implementation 'org.freemarker:freemarker:2.3.34'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user