mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 10:11:10 +00:00
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.
This commit is contained in:
1 parent
4ee2976806
commit
565fe68239
98 files changed
+5845
-630
No files matched your search
@@ -255,6 +255,12 @@
|
||||
<data name="SavingScanData" xml:space="preserve">
|
||||
<value>حفظ بيانات الفحص...</value>
|
||||
</data>
|
||||
<data name="InvalidatingStaleEnrichment" xml:space="preserve">
|
||||
<value>إبطال التخصيب القديم...</value>
|
||||
</data>
|
||||
<data name="ResolvingArtwork" xml:space="preserve">
|
||||
<value>جاري حل العمل الفني...</value>
|
||||
</data>
|
||||
<data name="Scan" xml:space="preserve">
|
||||
<value>الفحص</value>
|
||||
</data>
|
||||
|
||||
@@ -255,6 +255,12 @@
|
||||
<data name="SavingScanData" xml:space="preserve">
|
||||
<value>Scandaten werden gespeichert...</value>
|
||||
</data>
|
||||
<data name="InvalidatingStaleEnrichment" xml:space="preserve">
|
||||
<value>Ungültigmachen veralteter Anreicherungen...</value>
|
||||
</data>
|
||||
<data name="ResolvingArtwork" xml:space="preserve">
|
||||
<value>Artwork wird aufgelöst...</value>
|
||||
</data>
|
||||
<data name="Scan" xml:space="preserve">
|
||||
<value>Scannen</value>
|
||||
</data>
|
||||
|
||||
@@ -255,6 +255,12 @@
|
||||
<data name="SavingScanData" xml:space="preserve">
|
||||
<value>Saving scan data...</value>
|
||||
</data>
|
||||
<data name="InvalidatingStaleEnrichment" xml:space="preserve">
|
||||
<value>Invalidating stale enrichment...</value>
|
||||
</data>
|
||||
<data name="ResolvingArtwork" xml:space="preserve">
|
||||
<value>Resolving artwork...</value>
|
||||
</data>
|
||||
<data name="Scan" xml:space="preserve">
|
||||
<value>Scan</value>
|
||||
</data>
|
||||
|
||||
@@ -255,6 +255,12 @@
|
||||
<data name="SavingScanData" xml:space="preserve">
|
||||
<value>Guardando datos del escaneo...</value>
|
||||
</data>
|
||||
<data name="InvalidatingStaleEnrichment" xml:space="preserve">
|
||||
<value>Invalidando el enriquecimiento obsoleto...</value>
|
||||
</data>
|
||||
<data name="ResolvingArtwork" xml:space="preserve">
|
||||
<value>Resolviendo la carátula...</value>
|
||||
</data>
|
||||
<data name="Scan" xml:space="preserve">
|
||||
<value>Escanear</value>
|
||||
</data>
|
||||
|
||||
@@ -255,6 +255,12 @@
|
||||
<data name="SavingScanData" xml:space="preserve">
|
||||
<value>Sauvegarde des données de scan en cours...</value>
|
||||
</data>
|
||||
<data name="InvalidatingStaleEnrichment" xml:space="preserve">
|
||||
<value>Invalidation de l'enrichissement obsolète...</value>
|
||||
</data>
|
||||
<data name="ResolvingArtwork" xml:space="preserve">
|
||||
<value>Résolution de l'illustration...</value>
|
||||
</data>
|
||||
<data name="Scan" xml:space="preserve">
|
||||
<value>Scanner</value>
|
||||
</data>
|
||||
|
||||
@@ -255,6 +255,12 @@
|
||||
<data name="SavingScanData" xml:space="preserve">
|
||||
<value>Salvataggio dei dati di scansione...</value>
|
||||
</data>
|
||||
<data name="InvalidatingStaleEnrichment" xml:space="preserve">
|
||||
<value>Invalidazione dell'arricchimento obsoleto...</value>
|
||||
</data>
|
||||
<data name="ResolvingArtwork" xml:space="preserve">
|
||||
<value>Risoluzione della copertina...</value>
|
||||
</data>
|
||||
<data name="Scan" xml:space="preserve">
|
||||
<value>Scansiona</value>
|
||||
</data>
|
||||
|
||||
@@ -255,6 +255,12 @@
|
||||
<data name="SavingScanData" xml:space="preserve">
|
||||
<value>スキャンデータを保存中...</value>
|
||||
</data>
|
||||
<data name="InvalidatingStaleEnrichment" xml:space="preserve">
|
||||
<value>古い補完を無効化しています...</value>
|
||||
</data>
|
||||
<data name="ResolvingArtwork" xml:space="preserve">
|
||||
<value>アートワークを取得しています...</value>
|
||||
</data>
|
||||
<data name="Scan" xml:space="preserve">
|
||||
<value>スキャン</value>
|
||||
</data>
|
||||
|
||||
@@ -255,6 +255,12 @@
|
||||
<data name="SavingScanData" xml:space="preserve">
|
||||
<value>Saving scan data...</value>
|
||||
</data>
|
||||
<data name="InvalidatingStaleEnrichment" xml:space="preserve">
|
||||
<value>Invalidating stale enrichment...</value>
|
||||
</data>
|
||||
<data name="ResolvingArtwork" xml:space="preserve">
|
||||
<value>Resolving artwork...</value>
|
||||
</data>
|
||||
<data name="Scan" xml:space="preserve">
|
||||
<value>Scan</value>
|
||||
</data>
|
||||
|
||||
@@ -255,6 +255,12 @@
|
||||
<data name="SavingScanData" xml:space="preserve">
|
||||
<value>Se salvează datele de scanare...</value>
|
||||
</data>
|
||||
<data name="InvalidatingStaleEnrichment" xml:space="preserve">
|
||||
<value>Se invalidează îmbogățirea învechită...</value>
|
||||
</data>
|
||||
<data name="ResolvingArtwork" xml:space="preserve">
|
||||
<value>Se rezolvă coperta...</value>
|
||||
</data>
|
||||
<data name="Scan" xml:space="preserve">
|
||||
<value>Scanează</value>
|
||||
</data>
|
||||
|
||||
@@ -255,6 +255,12 @@
|
||||
<data name="SavingScanData" xml:space="preserve">
|
||||
<value>Збереження даних сканування...</value>
|
||||
</data>
|
||||
<data name="InvalidatingStaleEnrichment" xml:space="preserve">
|
||||
<value>Інвалідація застарілого збагачення...</value>
|
||||
</data>
|
||||
<data name="ResolvingArtwork" xml:space="preserve">
|
||||
<value>Вирішення зображення...</value>
|
||||
</data>
|
||||
<data name="Scan" xml:space="preserve">
|
||||
<value>Сканувати</value>
|
||||
</data>
|
||||
|
||||
@@ -255,6 +255,12 @@
|
||||
<data name="SavingScanData" xml:space="preserve">
|
||||
<value>正在保存扫描数据...</value>
|
||||
</data>
|
||||
<data name="InvalidatingStaleEnrichment" xml:space="preserve">
|
||||
<value>正在使过期的补全失效...</value>
|
||||
</data>
|
||||
<data name="ResolvingArtwork" xml:space="preserve">
|
||||
<value>正在获取封面图...</value>
|
||||
</data>
|
||||
<data name="Scan" xml:space="preserve">
|
||||
<value>扫描</value>
|
||||
</data>
|
||||
|
||||
@@ -174,8 +174,10 @@
|
||||
DiscoveringFiles: '@_localizer["DiscoveringFiles"]',
|
||||
ComparingFileHashes: '@_localizer["ComparingFileHashes"]',
|
||||
HashingFileContents: '@_localizer["HashingFileContents"]',
|
||||
SavingScanData: '@_localizer["SavingScanData"]',
|
||||
InvalidatingStaleEnrichment: '@_localizer["InvalidatingStaleEnrichment"]',
|
||||
EnrichingMetadata: '@_localizer["EnrichingMetadata"]',
|
||||
SavingScanData: '@_localizer["SavingScanData"]'
|
||||
ResolvingArtwork: '@_localizer["ResolvingArtwork"]'
|
||||
};
|
||||
const jsLocalizedLibraryTypes = {
|
||||
Book: '@_localizer["Book"]',
|
||||
|
||||
Reference in new issue
Block a user