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.
Adds the artwork providers list to the library edit page, mirroring the
metadata providers list, so that the artwork providers of a library can be
enabled, disabled and reordered. Adds the web routes, request types, DTO and
endpoints that proxy the artwork provider operations to the API.
Executes the view scripts after the application scripts have loaded, both on
the initial page load and during AJAX navigation, instead of running them
during HTML parsing when the API helpers are not defined yet. Sends an empty
JSON object for requests without a payload, because FastEndpoints parses the
JSON body when the content type is application/json. Adds the antiforgery
token to the management views that issue protected write requests.
Validates the cover image only when a new one is chosen, so an unchanged
stored cover does not block saving unrelated changes, and keeps the cover
already copied to the internal media directory instead of re-copying the
stored relative path, which was treated as an absolute file system path.
Seeds a disabled provider configuration for every loaded plugin supporting
a library type, so that libraries list the metadata and artwork providers
they can use. Configurations are seeded on startup, on library creation,
and reconciled when the library type changes, and are removed only when a
library or a plugin is deleted. Reads the library metadata providers
through the new provider configuration store.