Przeglądaj źródła

add options to library setup

Luke Pulverenti 9 lat temu
rodzic
commit
c18b8ec608

+ 4 - 4
MediaBrowser.Controller/Entities/CollectionFolder.cs

@@ -44,16 +44,16 @@ namespace MediaBrowser.Controller.Entities
 
         public string CollectionType { get; set; }
 
-        private readonly Dictionary<string, LibraryOptions> _libraryOptions = new Dictionary<string, LibraryOptions>();
+        private static readonly Dictionary<string, LibraryOptions> LibraryOptions = new Dictionary<string, LibraryOptions>();
         public LibraryOptions GetLibraryOptions()
         {
-            lock (_libraryOptions)
+            lock (LibraryOptions)
             {
                 LibraryOptions options;
-                if (!_libraryOptions.TryGetValue(Path, out options))
+                if (!LibraryOptions.TryGetValue(Path, out options))
                 {
                     options = LoadLibraryOptions();
-                    _libraryOptions[Path] = options;
+                    LibraryOptions[Path] = options;
                 }
 
                 return options;

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

@@ -143,6 +143,12 @@
     <Content Include="dashboard-ui\components\guestinviter\guestinviter.template.html">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
+    <Content Include="dashboard-ui\components\libraryoptionseditor\libraryoptionseditor.js">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="dashboard-ui\components\libraryoptionseditor\libraryoptionseditor.template.html">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
     <Content Include="dashboard-ui\components\navdrawer\navdrawer.css">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>