2
0
Luke Pulverenti 12 жил өмнө
parent
commit
3387dac01d

+ 2 - 2
MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs

@@ -156,8 +156,6 @@ namespace MediaBrowser.Controller.Providers
         /// <param name="item">The item.</param>
         private void PopulateBaseItemImages(BaseItem item)
         {
-            var screenshotFiles = new List<string>();
-
             // Primary Image
             var image = GetImage(item, "folder") ??
                 GetImage(item, "poster") ??
@@ -231,6 +229,8 @@ namespace MediaBrowser.Controller.Providers
             // Screenshot Image
             image = GetImage(item, "screenshot");
 
+            var screenshotFiles = new List<string>();
+
             if (image != null)
             {
                 screenshotFiles.Add(image.FullName);

+ 2 - 1
MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs

@@ -308,7 +308,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
 
             RaiseReceiveWebRequest(context);
 
-            await Task.Run(() =>
+            await Task.Factory.StartNew(() =>
             {
                 try
                 {
@@ -318,6 +318,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
                 {
                     _logger.ErrorException("ProcessRequest failure", ex);
                 }
+
             }).ConfigureAwait(false);
         }
 

+ 1 - 0
MediaBrowser.WebDashboard/Api/DashboardService.cs

@@ -549,6 +549,7 @@ namespace MediaBrowser.WebDashboard.Api
                                       "tileitem.css",
                                       "search.css",
                                       "pluginupdates.css",
+                                      "remotecontrol.css",
                                       "userimage.css"
                                   };
 

+ 3 - 0
MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj

@@ -246,6 +246,9 @@
     <Content Include="dashboard-ui\css\posteritem.css">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
+    <Content Include="dashboard-ui\css\remotecontrol.css">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
     <Content Include="dashboard-ui\css\search.css">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>