Browse Source

HashSet datatype was causing default values to always be added on server start

nicknsy 2 năm trước cách đây
mục cha
commit
2e2085a212

+ 2 - 2
MediaBrowser.Model/Configuration/TrickplayOptions.cs

@@ -31,7 +31,7 @@ namespace MediaBrowser.Model.Configuration
         /// <summary>
         /// <summary>
         /// Gets or sets the target width resolutions, in px, to generates preview images for.
         /// Gets or sets the target width resolutions, in px, to generates preview images for.
         /// </summary>
         /// </summary>
-        public HashSet<int> WidthResolutions { get; set; } = new HashSet<int> { 320 };
+        public int[] WidthResolutions { get; set; } = new[] { 320 };
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets number of tile images to allow in X dimension.
         /// Gets or sets number of tile images to allow in X dimension.
@@ -51,7 +51,7 @@ namespace MediaBrowser.Model.Configuration
         /// <summary>
         /// <summary>
         /// Gets or sets the jpeg quality to use for image tiles.
         /// Gets or sets the jpeg quality to use for image tiles.
         /// </summary>
         /// </summary>
-        public int JpegQuality { get; set; } = 90;
+        public int JpegQuality { get; set; } = 80;
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets the number of threads to be used by ffmpeg.
         /// Gets or sets the number of threads to be used by ffmpeg.