Browse Source

aadd sync services tab

Luke Pulverenti 10 năm trước cách đây
mục cha
commit
af0d1cada0

+ 6 - 2
MediaBrowser.Server.Implementations/Library/MediaSourceManager.cs

@@ -156,7 +156,12 @@ namespace MediaBrowser.Server.Implementations.Library
             var list = new List<MediaSourceInfo>();
 
             list.AddRange(mediaSources);
-            list.AddRange(dynamicMediaSources);
+
+            foreach (var source in dynamicMediaSources)
+            {
+                source.SupportsTranscoding = false;
+                list.Add(source);
+            }
 
             return SortMediaSources(list);
         }
@@ -273,7 +278,6 @@ namespace MediaBrowser.Server.Implementations.Library
             .ToList();
         }
 
-
         public MediaSourceInfo GetStaticMediaSource(IHasMediaSources item, string mediaSourceId, bool enablePathSubstitution)
         {
             return GetStaticMediaSources(item, enablePathSubstitution).FirstOrDefault(i => string.Equals(i.Id, mediaSourceId, StringComparison.OrdinalIgnoreCase));

+ 10 - 0
MediaBrowser.Server.Implementations/Localization/JavaScript/javascript.json

@@ -38,6 +38,16 @@
     "ErrorLaunchingChromecast": "There was an error launching chromecast. Please ensure your device is connected to your wireless network.",
     "ValueTimeLimitSingleHour": "Time limit: 1 hour",
     "ValueTimeLimitMultiHour": "Time limit: {0} hours",
+    "PluginCategoryGeneral": "General",
+    "PluginCategoryContentProvider": "Content Providers",
+    "PluginCategoryScreenSaver": "Screen Savers",
+    "PluginCategoryTheme": "Themes",
+    "PluginCategorySync": "Sync",
+    "PluginCategorySocialIntegration": "Social Networks",
+    "PluginCategoryNotifications": "Notifications",
+    "PluginCategoryMetadata": "Metadata",
+    "PluginCategoryLiveTV": "Live TV",
+    "PluginCategoryChannel": "Channels",
     "HeaderSearch": "Search",
     "ValueDateCreated": "Date created: {0}",
     "LabelArtist": "Artist",

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

@@ -61,6 +61,9 @@
     "HeaderEasyPinCode": "Easy Pin Code",
     "HeaderGrownupsOnly": "Grown-ups Only!",
     "DividerOr": "-- or --",
+    "HeaderInstalledServices": "Installed Services",
+    "HeaderAvailableServices": "Available Services",
+    "MessageNoServicesInstalled": "No services are currently installed.",
     "HeaderToAccessPleaseEnterEasyPinCode": "To access, please enter your easy pin code",
     "KidsModeAdultInstruction": "Click the lock icon in the bottom right to configure or leave kids mode. Your pin code will be required.",
     "ButtonConfigurePinCode": "Configure pin code",

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

@@ -366,6 +366,7 @@ namespace MediaBrowser.WebDashboard.Api
                                 "backdrops.js",
                                 "sync.js",
                                 "syncjob.js",
+                                "syncservices.js",
                                 "playlistmanager.js",
 
                                 "mediaplayer.js",

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

@@ -144,6 +144,7 @@
     <Content Include="dashboard-ui\scripts\syncjob.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
+    <Content Include="dashboard-ui\scripts\syncservices.js" />
     <Content Include="dashboard-ui\scripts\syncsettings.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
@@ -165,6 +166,9 @@
     <Content Include="dashboard-ui\syncjob.html">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
+    <Content Include="dashboard-ui\syncservices.html">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
     <Content Include="dashboard-ui\syncsettings.html">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>