Adds artwork provider system and Calibre plugin

This commit is contained in:
BinaryAlley committed 2026-08-24 14:18:14 -07:00
1 parent c82fadc7a2
commit 6693ff3f60
124 files changed
+9715 -74

No files matched your search

@@ -171,7 +171,14 @@ public static class PresentationApiLayerServices
services.AddAuthorization();
services.AddFastEndpoints(endpointDiscoveryOptions => endpointDiscoveryOptions.Assemblies = [ typeof(Program).Assembly ]);
services.AddFastEndpoints(endpointDiscoveryOptions =>
{
endpointDiscoveryOptions.Assemblies = [ typeof(Program).Assembly ];
// only scan the application assembly, so that duplicate copies of it loaded into other assembly load
// contexts during the process lifetime are never scanned again; otherwise a single host can register
// every endpoint multiple times and fail with duplicate routes
endpointDiscoveryOptions.DisableAutoDiscovery = true;
});
services.AddOpenApi();
@@ -25,5 +25,8 @@ public static partial class ApiRoutes
public const string GET_LIBRARY_METADATA_PROVIDERS = "/libraries/{libraryId}/metadata-providers";
public const string SET_LIBRARY_METADATA_PROVIDER_ENABLED = "/libraries/{libraryId}/metadata-providers/{pluginId}/enabled";
public const string REORDER_LIBRARY_METADATA_PROVIDERS = "/libraries/{libraryId}/metadata-providers/reorder";
public const string GET_LIBRARY_ARTWORK_PROVIDERS = "/libraries/{libraryId}/artwork-providers";
public const string SET_LIBRARY_ARTWORK_PROVIDER_ENABLED = "/libraries/{libraryId}/artwork-providers/{pluginId}/enabled";
public const string REORDER_LIBRARY_ARTWORK_PROVIDERS = "/libraries/{libraryId}/artwork-providers/reorder";
}
}