瀏覽代碼

add options to identify function

Luke Pulverenti 10 年之前
父節點
當前提交
5ad9123d67

+ 10 - 2
MediaBrowser.Api/ItemLookupService.cs

@@ -93,8 +93,16 @@ namespace MediaBrowser.Api
     [Authenticated(Roles = "Admin")]
     public class ApplySearchCriteria : RemoteSearchResult, IReturnVoid
     {
-        [ApiMember(Name = "Id", Description = "The item id", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")]
+        [ApiMember(Name = "Id", Description = "The item id", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")]
         public string Id { get; set; }
+
+        [ApiMember(Name = "ReplaceAllImages", Description = "Whether or not to replace all images", IsRequired = false, DataType = "boolean", ParameterType = "query", Verb = "POST")]
+        public bool ReplaceAllImages { get; set; }
+
+        public ApplySearchCriteria()
+        {
+            ReplaceAllImages = true;
+        }
     }
 
     public class ItemLookupService : BaseApiService
@@ -206,7 +214,7 @@ namespace MediaBrowser.Api
                 MetadataRefreshMode = MetadataRefreshMode.FullRefresh,
                 ImageRefreshMode = ImageRefreshMode.FullRefresh,
                 ReplaceAllMetadata = true,
-                ReplaceAllImages = true,
+                ReplaceAllImages = request.ReplaceAllImages,
                 Recursive = true
             });
         }

+ 3 - 1
MediaBrowser.Server.Implementations/Localization/Server/server.json

@@ -838,6 +838,8 @@
     "OptionAuto": "Auto",
     "OptionYes": "Yes",
     "OptionNo": "No",
+    "HeaderOptions": "Options",
+    "HeaderIdentificationResult": "Identification Result",
     "LabelHomePageSection1": "Home page section 1:",
     "LabelHomePageSection2": "Home page section 2:",
     "LabelHomePageSection3": "Home page section 3:",
@@ -861,7 +863,7 @@
     "OptionCommunityMostWatchedSort": "Most Watched",
     "TabNextUp": "Next Up",
     "MessageNoMovieSuggestionsAvailable": "No movie suggestions are currently available. Start watching and rating your movies, and then come back to view your recommendations.",
-    "MessageNoCollectionsAvailable": "Collections allow you to enjoy personalized groupings of Movies, Series, Albums, Books and Games. Click the New button to start creating Collections.",
+    "MessageNoCollectionsAvailable": "Collections allow you to enjoy personalized groupings of Movies, Series, Albums, Books and Games. Click the + button to start creating Collections.",
     "MessageNoPlaylistsAvailable": "Playlists allow you to create lists of content to play consecutively at a time. To add items to playlists, right click or tap and hold, then select Add to Playlist.",
     "MessageNoPlaylistItemsAvailable": "This playlist is currently empty.",
     "ButtonDismiss": "Dismiss",

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

@@ -2212,12 +2212,6 @@
     <Content Include="dashboard-ui\css\images\mblogoicon.png">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
-    <Content Include="dashboard-ui\css\images\mblogotextblack.png">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="dashboard-ui\css\images\mblogotextwhite.png">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
     <Content Include="dashboard-ui\css\images\clients\dlna.png">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>