浏览代码

update image sizing

Luke Pulverenti 9 年之前
父节点
当前提交
bbd672bf95
共有 2 个文件被更改,包括 10 次插入2 次删除
  1. 8 1
      MediaBrowser.Model/System/SystemInfo.cs
  2. 2 1
      MediaBrowser.Server.Startup.Common/ApplicationHost.cs

+ 8 - 1
MediaBrowser.Model/System/SystemInfo.cs

@@ -43,7 +43,7 @@ namespace MediaBrowser.Model.System
         /// </summary>
         /// <value><c>true</c> if [supports library monitor]; otherwise, <c>false</c>.</value>
         public bool SupportsLibraryMonitor { get; set; }
-        
+
         /// <summary>
         /// Gets or sets a value indicating whether this instance is network deployed.
         /// </summary>
@@ -86,6 +86,12 @@ namespace MediaBrowser.Model.System
         /// <value>The failed assembly loads.</value>
         public List<string> FailedPluginAssemblies { get; set; }
 
+        /// <summary>
+        /// Gets or sets the image enhancers.
+        /// </summary>
+        /// <value>The image enhancers.</value>
+        public List<string> ImageEnhancers { get; set; }
+
         /// <summary>
         /// Gets or sets the program data path.
         /// </summary>
@@ -162,6 +168,7 @@ namespace MediaBrowser.Model.System
             CompletedInstallations = new List<InstallationInfo>();
 
             FailedPluginAssemblies = new List<string>();
+            ImageEnhancers = new List<string>();
         }
     }
 }

+ 2 - 1
MediaBrowser.Server.Startup.Common/ApplicationHost.cs

@@ -1084,7 +1084,8 @@ namespace MediaBrowser.Server.Startup.Common
                 SupportsRunningAsService = SupportsRunningAsService,
                 ServerName = FriendlyName,
                 LocalAddress = LocalApiUrl,
-                SupportsLibraryMonitor = SupportsLibraryMonitor
+                SupportsLibraryMonitor = SupportsLibraryMonitor,
+                ImageEnhancers = ImageProcessor.ImageEnhancers.Select(i => i.GetType().Name).ToList()
             };
         }