Commit Graph
17 Commits
Author SHA1 Message Date
BinaryAlley 565fe68239 Adds independent metadata and artwork enrichment
Splits the single combined enrichment phase of the media library scan into
independent, modular jobs, so that the metadata and the artwork of a book
are enriched separately and only when their respective triggers fire.

- Adds the MediaContributorRoleCategory enum (Other first, then Author,
  Translator, Illustrator, Publisher and Narrator) and makes the role
  category canonical, so that roles describing the same kind of
  contribution are never treated as distinct.
- Realizes the media contributor bounded context: a MediaContributor is a
  person, unique by display name, without a role. The role moves to the
  per-work participation (BookContributors), so that a single contributor
  can play multiple roles. Contributors are created and linked by the
  metadata enrichment job, and exposed to subsequent jobs.
- Makes the Book aggregate pure: the enrichment tracking state (metadata
  status, providers, timestamps and covers) no longer lives on the domain
  aggregate, but stays in the Books table, managed directly by the jobs.
- Models artwork generically as a BookArtwork child table (type, ordinal,
  content hash, status and provider), so that each piece of artwork is
  tracked independently and a change of one does not require the others to
  be re-fetched.
- Splits the scan DAG into ResultsSave, ProviderConfigurationInvalidation,
  MetadataEnrichment and ArtworkEnrichment jobs. The invalidation job
  fingerprints the provider configuration of a library and resets the
  enrichment state of the affected channel when it changed. The artwork job
  resolves the missing artwork, hashing it to detect identical covers and
  skip re-copying. Content-changed books are reset by the results save job.
- Deletes the book and its stored artwork when the file disappears from the
  library.
- Adds the migration creating the new tables, backfilling the existing
  covers into the artwork table, and adding the configuration fingerprints.
- Localizes the new scan job stages, and fixes the invalidation job wiping
  the library content locations by persisting the fingerprints through the
  change tracker instead of the repository update action.
2026-08-27 14:41:49 +03:00
BinaryAlley 6693ff3f60 Adds artwork provider system and Calibre plugin 2026-08-24 14:18:14 -07:00
BinaryAlley 6fa154a2e7 Adds alpha picker filtering to the books lite query 2026-08-16 10:34:08 -07:00
BinaryAlley efe2f57aa3 Updates failing test. 2026-08-16 08:58:35 -07:00
BinaryAlley ce4ebf36bc Adds pagination and filtering to the API 2026-08-16 03:10:47 -07:00
BinaryAlley 3b772d68ca Replaces ErrorOr library with a custom implementation. 2026-08-14 03:04:28 -07:00
BinaryAlley 3653ff5bd7 Improves the plugin system documentation, tests and conventions
- Documents the book metadata DTOs and the Book aggregate constructor parameters
- References ADR-0006 in the scan snapshot repository remarks, explaining the Dapper choice
- Extracts shared plugin entity fixtures and uses them in the plugin and metadata provider tests
- Moves PluginLoadResult to the Common DTO models, renaming it PluginLoadResultDto
- Replaces the duplicate Contracts plugin setting type with the shared kernel enum
- Removes the generated plugin view Designer file and its project wiring
- Drops redundant braces in the plugin repositories
2026-08-12 13:58:47 -07:00
BinaryAlley 6f501a51f3 Integrates the plugin system into the host and the media library scan pipeline 2026-08-12 11:04:45 -07:00
BinaryAlley f33817f2d2 Scopes books to a media library and tracks their metadata enrichment status 2026-08-12 11:01:59 -07:00
BinaryAlley 76b9596a27 Moves enums and errors to a shared kernel. 2026-08-12 09:07:00 -07:00
BinaryAlley 74e9030a18 Fixes typos and replaces LINQ conversions with collection expressions 2026-08-09 00:19:28 -07:00
BinaryAlley c4246d2e69 Moves media library scanning to domain layer 2025-02-16 21:45:26 +02:00
BinaryAlley d7c8478101 Adds media libraries management view 2025-01-11 23:11:33 +02:00
BinaryAlley 0114ff13e8 Adds authorization module tests 2025-01-01 22:56:07 +02:00
BinaryAlley 7321fb89e2 Moves repository entities to Application layer for joint access 2024-11-04 19:40:11 +02:00
BinaryAlley 786bdef4b5 Moves enums to Domain Layer 2024-11-03 20:12:21 +02:00
BinaryAlley 36352ea9e8 Implements first stage library management system 2024-11-03 19:43:46 +02:00