Browse Source

update cinema mode config

Luke Pulverenti 9 years ago
parent
commit
6186d2809f

+ 3 - 1
MediaBrowser.Model/Configuration/CinemaModeConfiguration.cs

@@ -11,17 +11,19 @@ namespace MediaBrowser.Model.Configuration
         public bool EnableIntrosParentalControl { get; set; }
         public bool EnableIntrosParentalControl { get; set; }
         public bool EnableIntrosFromSimilarMovies { get; set; }
         public bool EnableIntrosFromSimilarMovies { get; set; }
         public string CustomIntroPath { get; set; }
         public string CustomIntroPath { get; set; }
-        public string CodecIntroPath { get; set; }
+        public string MediaInfoIntroPath { get; set; }
         public bool EnableIntrosFromUpcomingDvdMovies { get; set; }
         public bool EnableIntrosFromUpcomingDvdMovies { get; set; }
         public bool EnableIntrosFromUpcomingStreamingMovies { get; set; }
         public bool EnableIntrosFromUpcomingStreamingMovies { get; set; }
 
 
         public int TrailerLimit { get; set; }
         public int TrailerLimit { get; set; }
+        public string[] Tags { get; set; }
         
         
         public CinemaModeConfiguration()
         public CinemaModeConfiguration()
         {
         {
             EnableIntrosParentalControl = true;
             EnableIntrosParentalControl = true;
             EnableIntrosFromSimilarMovies = true;
             EnableIntrosFromSimilarMovies = true;
             TrailerLimit = 2;
             TrailerLimit = 2;
+            Tags = new[] { "thx" };
         }
         }
     }
     }
 }
 }

+ 2 - 2
MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs

@@ -245,9 +245,9 @@ namespace MediaBrowser.Server.Implementations.Intros
                     .Where(_libraryManager.IsVideoFile));
                     .Where(_libraryManager.IsVideoFile));
             }
             }
 
 
-            if (!string.IsNullOrWhiteSpace(options.CodecIntroPath))
+            if (!string.IsNullOrWhiteSpace(options.MediaInfoIntroPath))
             {
             {
-                list.AddRange(_fileSystem.GetFilePaths(options.CodecIntroPath, true)
+                list.AddRange(_fileSystem.GetFilePaths(options.MediaInfoIntroPath, true)
                     .Where(_libraryManager.IsVideoFile));
                     .Where(_libraryManager.IsVideoFile));
             }
             }