Commit Graph
64 Commits
Author SHA1 Message Date
BinaryAlley 64e5163229 Updates the provider configuration and ownership tests
Covers the provider and reader choices saved with a library, the reconciliation and stale configuration deletion in the provider store, the library type lookups, the ownership and permission checks for update and delete, and the validator behavior for enum names.
2026-11-03 10:00:00 +02:00
BinaryAlley 8ff5149b6e Serializes media library scans through a scan queue
Replaces the job queue with a scan queue that executes one media library scan at a time, in the order in which the scans were queued, so several libraries requested at once no longer run one complete job chain each on the thread pool shared with the web server.

Keeps queued scans Pending and cancellable, reports them as queued, and cancels the executing scan and the queued ones when the user cancels all scans. A media library type without a scanner now fails its own scan instead of leaving it stuck Pending, without stopping the scans queued behind it.

Makes the file system discovery job the only top level job of a scan graph, so awaiting it completes the whole scan, and leaves one logical processor free for the rest of the process while discovery and hashing read files in parallel.

Removes the per job Task.Run wrappers, links the scan cancellation with the host shutdown token in the scan processor, updates the ADR amendments, API documentation, manual, web client and tests, and normalizes the comments of the touched files.
2026-10-31 14:42:33 +02:00
BinaryAlley 45c1d1bd44 Covers the SSD content setting with tests
Adds domain, mapping, endpoint, persistence, discovery, and hashing coverage, including parallel and sequential read behavior.
2026-10-30 22:40:41 +02:00
BinaryAlley 6ef9592f00 Fixes large library scans hitting the SQLite parameter limit
Bounds path lookups and enrichment resets to 20,000 parameters per query, restores failed scans from their staged metadata, and clears staged data only after the materialized items are saved.
2026-10-29 20:23:24 +02:00
BinaryAlley aeefa9487e Implements tests for commit 45f9aa3bd5 2026-10-28 22:34:32 +02:00
BinaryAlley d61a114d80 Implements tests for commit 4e13b23f16
Covers the normalized audio cache with integration tests for the cache paths, the coordinator, the reader lease, the reservation, the lease stream, the output size tracker and the startup initializer, and unit tests for the playback format catalog and the transcoding toolchain status, with fixtures for the index DTOs and the transcoding settings. Makes the array based asynchronous overloads of the lease stream adapt to the memory based overloads of the inner stream.
2026-10-28 15:32:52 +02:00
BinaryAlley fe20202e49 Implements tests for commit 2ffacb5360 2026-10-27 19:14:02 +02:00
BinaryAlley 9889c86c76 Adds playlist management and playback 2026-10-21 16:30:58 +03:00
BinaryAlley 7dc5953e1d Adds the playback delivery decision service 2026-10-15 09:19:36 +03:00
BinaryAlley f29f89f31f Captures the audio container of the music tracks
Adds a Container to the audio metadata, captured with TagLibSharp from the concrete type of the parsed file during the music library scan and stored on the track through a new column and an EF migration. The container is refreshed when a file changes, survives track and artist edits and provider enrichment, and is exposed read-only in the track responses, never settable through a request.

Extracts the container resolution into a testable resolver used by the scan pipeline and the ID3 plugin, refuses to read a file that is itself a reparse point during extraction, and updates the endpoint summaries, the API and domain documentation, and the tests.
2026-10-14 13:40:28 +03:00
BinaryAlley b29803ac77 Refreshes the bundled themes whose shipped version changes. 2026-10-13 13:27:10 +03:00
BinaryAlley 443f4612f8 Fixes the release type detection of the music library path structure. 2026-10-13 13:27:02 +03:00
BinaryAlley 006df1da3a Moves the cancellation token to the last parameter position. 2026-10-12 23:02:05 +03:00
BinaryAlley 09c31a4fe6 Uses the file system path service for music and book path parsing 2026-10-10 15:48:41 +03:00
BinaryAlley a514335a10 Aligns the test fixture field names with their types and tidies the remaining tests 2026-10-10 14:24:00 +03:00
BinaryAlley 35ac1dbdcb Adds the music library scanning pipeline, its scanner, scan jobs, and path structure 2026-10-09 20:53:00 +03:00
BinaryAlley 9e118864c3 Adds the media library artwork aggregation services, enrichers, and their provider contracts 2026-10-09 01:59:00 +03:00
BinaryAlley 3aadd6de84 Refactors the test fixtures and their consumers to compose other fixtures instead of instantiating models inline 2026-10-02 14:37:23 +03:00
BinaryAlley 80af18170a Adds a technical data cleanup scheduled job that fails interrupted media library scans at startup 2026-09-29 12:00:00 +03:00
BinaryAlley 4d96fe10dd Removes the umbrella include flag from the fixtures and their consumers 2026-09-27 23:05:06 +03:00
BinaryAlley ef913f5c9e Adapts the tests and fixtures to the refactored domain and persistence layers 2026-09-20 01:35:14 +03:00
BinaryAlley 64ef3a1e22 Returns the unit of work save changes result 2026-09-26 12:59:17 +03:00
BinaryAlley ea6eb9f796 Refactors the book, artist, and album slices across the stack 2026-09-17 13:30:48 -07:00
BinaryAlley 3a720af29f Adds domain Music aggregate 2026-09-07 09:41:57 -07:00
BinaryAlley 145185d715 Adds book editing tests and parameterizes the shared test fixtures 2026-09-06 09:37:55 -07:00
BinaryAlley 8f41ca918b Guards the temporary files cleanup failure test to Windows only 2026-09-05 03:52:20 -07:00
BinaryAlley 315aed90f0 Completes the scheduler module coverage with a startup theme bootstrap and a stubbed cycle ticker 2026-09-05 01:40:15 -07:00
BinaryAlley 4b7cfbbe11 Completes the scheduled jobs module with default jobs, a themed scheduler page and aligned recovery semantics 2026-09-04 13:56:04 -07:00
BinaryAlley 99a6159f7f Adds the scheduling module tests and centralizes domain event test fixtures 2026-09-04 00:16:41 -07:00
BinaryAlley 44d37d71e2 Authenticates the scan progress hub connections 2026-09-03 12:51:35 -07:00
BinaryAlley 042c5e4729 Relocates real-resource tests into integration projects and improves data access unit tests 2026-09-02 09:49:58 -07:00
BinaryAlley 551259ad81 Adds unit tests improving infrastructure project code coverage 2026-09-02 07:52:01 -07:00
BinaryAlley 3a3c0c047c Adds tests for the book reading feature 2026-09-02 04:45:51 -07:00
BinaryAlley 3192b9c585 Falls back to the unstyled application views when a theme template is missing 2026-08-29 13:11:16 +03:00
BinaryAlley df057185f3 Restores missing bundled themes correctly 2026-08-28 11:18:08 -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 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 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 f42dc709de Standardizes test conventions and documentation 2026-08-24 14:20:08 -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 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 b32cc764a7 Persists and surfaces plugin load failures 2026-08-23 05:28:50 -07:00
BinaryAlley 15945c2e56 Removes the option to disable theme scripts 2026-08-21 11:47:16 -07:00
BinaryAlley baa6450406 Adds the unit tests for the theming feature 2026-08-21 09:43:10 -07:00
BinaryAlley 1189bbaf36 Hardens test assertions and adds missing test coverage. 2026-08-18 08:28:16 -07:00