The Free Software Media System - Server Backend & API
Made key lookup case insensitive
JPVensondf8f352d6543
diff --git a/Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs b/Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.csindex 730e628df2..1dd7cfe045 100644--- a/Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs+++ b/Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs@@ -38,7 +38,7 @@ public static class ServiceCollectionExtensions}var provider = providerType;- items[keyAttribute.DatabaseProviderKey] = (services) => (IJellyfinDatabaseProvider)ActivatorUtilities.CreateInstance(services, providerType);+ items[keyAttribute.DatabaseProviderKey.ToUpperInvariant()] = (services) => (IJellyfinDatabaseProvider)ActivatorUtilities.CreateInstance(services, providerType);}return items;@@ -81,7 +81,7 @@ public static class ServiceCollectionExtensions}}- if (!providers.TryGetValue(efCoreConfiguration.DatabaseType, out providerFactory!))+ if (!providers.TryGetValue(efCoreConfiguration.DatabaseType.ToUpperInvariant(), out providerFactory!)){throw new InvalidOperationException($"Jellyfin cannot find the database provider of type '{efCoreConfiguration.DatabaseType}'. Supported types are {string.Join(", ", providers.Keys)}");}