Browse Source

add remote control script file

Luke Pulverenti 12 years ago
parent
commit
2225ff4e6b

+ 2 - 1
MediaBrowser.Controller/Providers/Movies/FanArtMovieUpdatesPrescanTask.cs

@@ -64,7 +64,8 @@ namespace MediaBrowser.Controller.Providers.Movies
 
 
             var timestampFileInfo = new FileInfo(timestampFile);
             var timestampFileInfo = new FileInfo(timestampFile);
 
 
-            if (_config.Configuration.MetadataRefreshDays > 0 && timestampFileInfo.Exists && (DateTime.UtcNow - timestampFileInfo.LastWriteTimeUtc).TotalDays < _config.Configuration.MetadataRefreshDays)
+            // Don't check for tvdb updates anymore frequently than 24 hours
+            if (timestampFileInfo.Exists && (DateTime.UtcNow - timestampFileInfo.LastWriteTimeUtc).TotalDays < 1)
             {
             {
                 return;
                 return;
             }
             }

+ 2 - 1
MediaBrowser.Controller/Providers/Music/FanArtUpdatesPrescanTask.cs

@@ -63,7 +63,8 @@ namespace MediaBrowser.Controller.Providers.Music
 
 
             var timestampFileInfo = new FileInfo(timestampFile);
             var timestampFileInfo = new FileInfo(timestampFile);
 
 
-            if (_config.Configuration.MetadataRefreshDays > 0 && timestampFileInfo.Exists && (DateTime.UtcNow - timestampFileInfo.LastWriteTimeUtc).TotalDays < _config.Configuration.MetadataRefreshDays)
+            // Don't check for tvdb updates anymore frequently than 24 hours
+            if (timestampFileInfo.Exists && (DateTime.UtcNow - timestampFileInfo.LastWriteTimeUtc).TotalDays < 1)
             {
             {
                 return;
                 return;
             }
             }

+ 2 - 1
MediaBrowser.Controller/Providers/TV/FanArtTvUpdatesPrescanTask.cs

@@ -64,7 +64,8 @@ namespace MediaBrowser.Controller.Providers.TV
 
 
             var timestampFileInfo = new FileInfo(timestampFile);
             var timestampFileInfo = new FileInfo(timestampFile);
 
 
-            if (_config.Configuration.MetadataRefreshDays > 0 && timestampFileInfo.Exists && (DateTime.UtcNow - timestampFileInfo.LastWriteTimeUtc).TotalDays < _config.Configuration.MetadataRefreshDays)
+            // Don't check for tvdb updates anymore frequently than 24 hours
+            if (timestampFileInfo.Exists && (DateTime.UtcNow - timestampFileInfo.LastWriteTimeUtc).TotalDays < 1)
             {
             {
                 return;
                 return;
             }
             }

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

@@ -454,6 +454,7 @@ namespace MediaBrowser.WebDashboard.Api
                                       "librarybrowser.js",
                                       "librarybrowser.js",
 
 
                                       "aboutpage.js",
                                       "aboutpage.js",
+                                      "alphapicker.js",
                                       "addpluginpage.js",
                                       "addpluginpage.js",
                                       "advancedconfigurationpage.js",
                                       "advancedconfigurationpage.js",
                                       "advancedmetadataconfigurationpage.js",
                                       "advancedmetadataconfigurationpage.js",
@@ -494,6 +495,7 @@ namespace MediaBrowser.WebDashboard.Api
                                       "plugincatalogpage.js",
                                       "plugincatalogpage.js",
                                       "pluginspage.js",
                                       "pluginspage.js",
                                       "pluginupdatespage.js",
                                       "pluginupdatespage.js",
+                                      "remotecontrol.js",
                                       "scheduledtaskpage.js",
                                       "scheduledtaskpage.js",
                                       "scheduledtaskspage.js",
                                       "scheduledtaskspage.js",
                                       "search.js",
                                       "search.js",

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

@@ -327,6 +327,9 @@
     <Content Include="dashboard-ui\musicvideos.html">
     <Content Include="dashboard-ui\musicvideos.html">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
     </Content>
+    <Content Include="dashboard-ui\scripts\alphapicker.js">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
     <Content Include="dashboard-ui\scripts\edititemimages.js">
     <Content Include="dashboard-ui\scripts\edititemimages.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
     </Content>
@@ -342,6 +345,9 @@
     <Content Include="dashboard-ui\scripts\musicvideos.js">
     <Content Include="dashboard-ui\scripts\musicvideos.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
     </Content>
+    <Content Include="dashboard-ui\scripts\remotecontrol.js">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
     <Content Include="dashboard-ui\scripts\search.js">
     <Content Include="dashboard-ui\scripts\search.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
     </Content>