Adds metadata aggregation to the media library enrichment job

This commit is contained in:
BinaryAlley committed 2026-08-24 14:18:40 -07:00
1 parent c82fadc7a2
commit 66871ccf62
168 files changed
+3503 -1062

No files matched your search

@@ -39,6 +39,7 @@ public class UnitOfWork : IUnitOfWork, IDisposable
private ILibraryScanSnapshotRepository? _libraryScanSnapshotRepository;
private ILibraryScanStagingResultsRepository? _libraryScanStagingResultsRepository;
private ILibraryMetadataProviderConfigurationRepository? _libraryMetadataProviderConfigurationRepository;
private IArtworkProviderConfigurationRepository? _artworkProviderConfigurationRepository;
private IPluginRepository? _pluginRepository;
private IThemeRepository? _themeRepository;
private IUserRepository? _userRepository;
@@ -176,6 +177,18 @@ public class UnitOfWork : IUnitOfWork, IDisposable
}
}
/// <summary>
/// Gets the library artwork provider configuration repository.
/// </summary>
public IArtworkProviderConfigurationRepository ArtworkProviderConfigurationRepository
{
get
{
_artworkProviderConfigurationRepository ??= new ArtworkProviderConfigurationRepository(_luminaDbContext);
return _artworkProviderConfigurationRepository;
}
}
/// <summary>
/// Gets the plugin repository.
/// </summary>
@@ -242,6 +255,14 @@ public class UnitOfWork : IUnitOfWork, IDisposable
await _luminaDbContext.SaveChangesAsync(cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Detaches all the entities tracked by the unit of work, freeing the memory they occupy.
/// </summary>
public void ClearTrackedEntities()
{
_luminaDbContext.ChangeTracker.Clear();
}
/// <summary>
/// Begins a new database transaction.
/// </summary>