BaronGreenback 4 лет назад
Родитель
Сommit
7459baac8b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Emby.Server.Implementations/ApplicationHost.cs

+ 1 - 1
Emby.Server.Implementations/ApplicationHost.cs

@@ -770,6 +770,7 @@ namespace Emby.Server.Implementations
 
 
             ConfigurationManager.AddParts(GetExports<IConfigurationFactory>());
             ConfigurationManager.AddParts(GetExports<IConfigurationFactory>());
             _plugins = GetExports<IPlugin>()
             _plugins = GetExports<IPlugin>()
+                        .Select(LoadPlugin)
                         .Where(i => i != null)
                         .Where(i => i != null)
                         .ToArray();
                         .ToArray();
 
 
@@ -1540,7 +1541,6 @@ namespace Emby.Server.Implementations
         public IEnumerable<Assembly> GetApiPluginAssemblies()
         public IEnumerable<Assembly> GetApiPluginAssemblies()
         {
         {
             var assemblies = _allConcreteTypes
             var assemblies = _allConcreteTypes
-                .Select(LoadPlugin)
                 .Where(i => typeof(ControllerBase).IsAssignableFrom(i))
                 .Where(i => typeof(ControllerBase).IsAssignableFrom(i))
                 .Select(i => i.Assembly)
                 .Select(i => i.Assembly)
                 .Distinct();
                 .Distinct();