The Free Software Media System - Server Backend & API
copy constructor
BaronGreenback21f6d3943264
diff --git a/Emby.Server.Implementations/Plugins/PluginManager.cs b/Emby.Server.Implementations/Plugins/PluginManager.csindex c063597575..51a75f6a39 100644--- a/Emby.Server.Implementations/Plugins/PluginManager.cs+++ b/Emby.Server.Implementations/Plugins/PluginManager.cs@@ -51,8 +51,10 @@ namespace Emby.Server.Implementations.Plugins_logger = logger ?? throw new ArgumentNullException(nameof(logger));_pluginsPath = pluginsPath;_appVersion = appVersion ?? throw new ArgumentNullException(nameof(appVersion));- _jsonOptions = JsonDefaults.GetOptions();- _jsonOptions.WriteIndented = true;+ _jsonOptions = new JsonSerializerOptions(JsonDefaults.GetOptions())+ {+ WriteIndented = true+ };// We need to use the default GUID converter, so we need to remove any custom ones.for (int a = _jsonOptions.Converters.Count - 1; a >= 0; a--)