Bläddra i källkod

forgot to mark file copy if newer

Luke Pulverenti 12 år sedan
förälder
incheckning
6a5d6b5d4c

+ 8 - 8
MediaBrowser.Model/Configuration/ServerConfiguration.cs

@@ -243,17 +243,17 @@ namespace MediaBrowser.Model.Configuration
             TmdbFetchedProfileSize = "original"; //w185 w45 h632 or original
             TmdbFetchedPosterSize = "original"; //w500, w342, w185 or original
             TmdbFetchedBackdropSize = "original"; //w1280, w780 or original
-            DownloadMovieImages = new ImageDownloadOptions {Backdrops = true, Primary = true};
-            DownloadSeriesImages = new ImageDownloadOptions {Backdrops = true, Primary = true, Banner = true, Logo = true};
-            DownloadSeasonImages = new ImageDownloadOptions {Backdrops = false, Primary = true, Banner = true};
-            DownloadMusicArtistImages = new ImageDownloadOptions {Backdrops = true, Primary = true, Banner = true, Thumb = true};
-            DownloadMusicAlbumImages = new ImageDownloadOptions {Backdrops = true, Primary = false};
+            DownloadMovieImages = new ImageDownloadOptions();
+            DownloadSeriesImages = new ImageDownloadOptions();
+            DownloadSeasonImages = new ImageDownloadOptions();
+            DownloadMusicArtistImages = new ImageDownloadOptions();
+            DownloadMusicAlbumImages = new ImageDownloadOptions();
             DownloadHDFanArt = true;
             MaxBackdrops = 4;
 
-            SortReplaceCharacters = new [] { ".", "+", "%" };
-            SortRemoveCharacters = new [] { ",", "&", "-", "{", "}", "'" };
-            SortRemoveWords = new [] { "the", "a", "an" };
+            SortReplaceCharacters = new[] { ".", "+", "%" };
+            SortRemoveCharacters = new[] { ",", "&", "-", "{", "}", "'" };
+            SortRemoveWords = new[] { "the", "a", "an" };
         }
     }
 }

+ 23 - 0
MediaBrowser.Model/Entities/ImageDownloadOptions.cs

@@ -1,42 +1,65 @@
 
 namespace MediaBrowser.Model.Entities
 {
+    /// <summary>
+    /// Class ImageDownloadOptions
+    /// </summary>
     public class ImageDownloadOptions
     {
         /// <summary>
         /// Download Art Image
         /// </summary>
+        /// <value><c>true</c> if art; otherwise, <c>false</c>.</value>
         public bool Art { get; set; }
 
         /// <summary>
         /// Download Logo Image
         /// </summary>
+        /// <value><c>true</c> if logo; otherwise, <c>false</c>.</value>
         public bool Logo { get; set; }
 
         /// <summary>
         /// Download Primary Image
         /// </summary>
+        /// <value><c>true</c> if primary; otherwise, <c>false</c>.</value>
         public bool Primary { get; set; }
 
         /// <summary>
         /// Download Backdrop Images
         /// </summary>
+        /// <value><c>true</c> if backdrops; otherwise, <c>false</c>.</value>
         public bool Backdrops { get; set; }
 
         /// <summary>
         /// Download Disc Image
         /// </summary>
+        /// <value><c>true</c> if disc; otherwise, <c>false</c>.</value>
         public bool Disc { get; set; }
 
         /// <summary>
         /// Download Thumb Image
         /// </summary>
+        /// <value><c>true</c> if thumb; otherwise, <c>false</c>.</value>
         public bool Thumb { get; set; }
 
         /// <summary>
         /// Download Banner Image
         /// </summary>
+        /// <value><c>true</c> if banner; otherwise, <c>false</c>.</value>
         public bool Banner { get; set; }
 
+        /// <summary>
+        /// Initializes a new instance of the <see cref="ImageDownloadOptions"/> class.
+        /// </summary>
+        public ImageDownloadOptions()
+        {
+            Art = true;
+            Logo = true;
+            Primary = true;
+            Backdrops = true;
+            Disc = true;
+            Thumb = true;
+            Banner = true;
+        }
     }
 }

+ 3 - 1
MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj

@@ -288,7 +288,9 @@
     <Content Include="dashboard-ui\scripts\movietrailers.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
-    <Content Include="dashboard-ui\scripts\musicgenres.js" />
+    <Content Include="dashboard-ui\scripts\musicgenres.js">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
     <Content Include="dashboard-ui\scripts\playlist.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>