Commit Graph
539 Commits
Author SHA1 Message Date
BinaryAlley 459dab07fe Merge pull request #180 from BinaryAlley/feature/independent-metadata-and-artwork-enrichment
Feature/independent metadata and artwork enrichment
2026-08-27 07:25:06 -07:00
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 4ee2976806 Adds artwork provider management to the library edit page
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.
2026-08-26 21:49:49 +03:00
BinaryAlley 4b861d8323 Merge pull request #177 from BinaryAlley/bugfix/library-web-frontend-fixes
Bugfix/library web frontend fixes
2026-08-26 10:32:51 -07:00
BinaryAlley 06bb73a31b Merge branch 'master' into bugfix/library-web-frontend-fixes 2026-08-26 09:48:35 -07:00
BinaryAlley 6080b03ada Merge pull request #178 from BinaryAlley/bugfix/library-cover-image-handling
Bugfix/library cover image handling
2026-08-26 09:48:04 -07:00
BinaryAlley ba9a49b0db Fixes view script loading and request handling on the web frontend
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.
2026-08-26 19:16:21 +03:00
BinaryAlley ccefb65c83 Fixes library cover image handling on save
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.
2026-08-26 19:15:49 +03:00
BinaryAlley 00dcf3d471 Adds metadata and artwork provider configuration seeding
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.
2026-08-26 19:14:35 +03:00
BinaryAlley 9ae8c0c394 Merge pull request #176 from BinaryAlley/bugfix/fix-flaky-genre-collision-in-book-alpha-filter-tests
Bugfix/fix flaky genre collision in book alpha filter tests
2026-08-25 09:09:13 -07:00
BinaryAlley 054911e9a7 Fixes flaky genre collision in book alpha filter tests 2026-08-25 09:01:10 -07:00
BinaryAlley d08dbbd431 Adds AntiForgeryToken to plugins upload form 2026-08-25 08:42:37 -07:00
BinaryAlley 1b9ba6140d Merge pull request #174 from BinaryAlley/feature/add-artwork-provider-and-metadata-aggregation
Feature/add artwork provider and metadata aggregation
2026-08-24 23:29:48 -07:00
BinaryAlley 8144cb2986 Uses platform path separator in artwork sanitization security test 2026-08-24 23:13:41 -07:00
BinaryAlley deada87e56 Merge branch 'bugfix/fix-path-sanitization' into feature/add-artwork-provider-and-metadata-aggregation 2026-08-24 22:58:40 -07:00
BinaryAlley 4ff184d8a5 Merge branch 'refactor/standardize-test-fixtures-and-docs' into feature/add-artwork-provider-and-metadata-aggregation 2026-08-24 22:56:22 -07:00
BinaryAlley b47588cf83 Merge branch 'feature/add-metadata-aggregation' into feature/add-artwork-provider-and-metadata-aggregation 2026-08-24 22:53:57 -07:00
BinaryAlley 0f872b5666 Merge branch 'feature/add-artwork-provider-system' into feature/add-artwork-provider-and-metadata-aggregation 2026-08-24 22:53:55 -07:00
BinaryAlley f42dc709de Standardizes test conventions and documentation 2026-08-24 14:20:08 -07:00
BinaryAlley 7aeed04255 Adds test fixtures and endpoint test coverage 2026-08-24 14:19:45 -07:00
BinaryAlley 942db4c90e Fixes path segment sanitization allowing path separators 2026-08-24 14:18:49 -07:00
BinaryAlley 66871ccf62 Adds metadata aggregation to the media library enrichment job 2026-08-24 14:18:40 -07:00
BinaryAlley 6693ff3f60 Adds artwork provider system and Calibre plugin 2026-08-24 14:18:14 -07:00
BinaryAlley 04927a95af Refactors metadata provider contracts to typed interfaces 2026-08-24 14:17:29 -07:00
BinaryAlley c82fadc7a2 Merge pull request #170 from BinaryAlley/bugfix/fix-plugin-upload-path-traversal-on-unix
Bugfix/fix plugin upload path traversal on unix
2026-08-23 08:37:35 -07:00
BinaryAlley 862c76c00b Fixes plugin upload path traversal on non-Windows platforms 2026-08-23 08:31:47 -07:00
BinaryAlley b3ffb5dfab Adds plugin upload from the web client 2026-08-23 08:15:29 -07:00
BinaryAlley d84823f6d2 Merge pull request #168 from BinaryAlley/feature/add-arabic-localization
Adds Arabic localization support
2026-08-23 06:35:11 -07:00
BinaryAlley e0299aa9ee Adds Arabic localization support 2026-08-23 06:29:18 -07:00
BinaryAlley c88895330e Merge pull request #167 from BinaryAlley/feature/surface-plugin-load-failures
Persists and surfaces plugin load failures
2026-08-23 06:13:43 -07:00
BinaryAlley b32cc764a7 Persists and surfaces plugin load failures 2026-08-23 05:28:50 -07:00
BinaryAlley 18361d5da7 Merge pull request #166 from BinaryAlley/refactor/update-errors-translations
Updates errors translations.
2026-08-23 04:24:47 -07:00
BinaryAlley f796e39152 Updates errors translations. 2026-08-23 04:18:52 -07:00
BinaryAlley 07c01b9568 Merge pull request #165 from BinaryAlley/documentation/update-api-documentation
Updates API documentation
2026-08-23 04:03:48 -07:00
BinaryAlley 629e6e463e Updates API documentation 2026-08-23 03:57:37 -07:00
BinaryAlley 53ec400921 Merge pull request #164 from BinaryAlley/feature/centralize-nuget-package-versioning
Centralizes NuGet package versioning
2026-08-23 03:12:03 -07:00
BinaryAlley 4bce644e89 Centralizes NuGet package versioning 2026-08-23 03:05:21 -07:00
BinaryAlley 1192d3bfae Merge pull request #163 from BinaryAlley/feature/sixlabors-license-handling
Adds Six Labors license handling and expiry checks
2026-08-23 02:48:59 -07:00
BinaryAlley 3c4d1e666b Adds Six Labors license handling and expiry checks 2026-08-23 12:20:04 -07:00
BinaryAlley c9c517cf1e Merge pull request #162 from BinaryAlley/feature/application-telemetry-and-observability
Feature/application telemetry and observability
2026-08-22 06:35:36 -07:00
BinaryAlley 89f3711c94 Documents telemetry and observability 2026-08-22 06:28:06 -07:00
BinaryAlley 0f903e6ff2 Adds a local observability stack and container wiring 2026-08-22 06:27:55 -07:00
BinaryAlley 6af3d4f5e5 Adds OpenTelemetry pipelines and health probes to the presentation layer 2026-08-22 06:27:42 -07:00
BinaryAlley a2c99b1b79 Adds telemetry instrumentation to application handlers 2026-08-22 06:27:31 -07:00
BinaryAlley ffcb25c13f Merge pull request #161 from BinaryAlley/bugfix/fix-security-tests-shared-in-memory-sqlite-connection
Bugfix/fix security tests shared in memory sqlite connection
2026-08-22 01:10:42 -07:00
BinaryAlley aea03cb528 Switches security tests to per-factory shared in-memory SQLite databases 2026-08-22 01:04:02 -07:00
BinaryAlley b2b6f554b7 Caches JsonSerializerOptions instances in tests 2026-08-22 00:43:58 -07:00
BinaryAlley c2e00242cc Adds global exception handling middleware to the API 2026-08-22 00:43:52 -07:00
BinaryAlley 9ea69e6ffc Merge pull request #159 from BinaryAlley/bugfix/fix-file-system-browser-crash
Bugfix/fix file system browser crash
2026-08-22 00:11:58 -07:00
BinaryAlley ad3e6d6779 Fixes failed result access when reading file sizes 2026-08-22 00:04:51 -07:00