diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index ab7d7cb9da..554e7afd15 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/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" }; } } } diff --git a/MediaBrowser.Model/Entities/ImageDownloadOptions.cs b/MediaBrowser.Model/Entities/ImageDownloadOptions.cs index c69c759ac4..92e989a348 100644 --- a/MediaBrowser.Model/Entities/ImageDownloadOptions.cs +++ b/MediaBrowser.Model/Entities/ImageDownloadOptions.cs @@ -1,42 +1,65 @@  namespace MediaBrowser.Model.Entities { + /// + /// Class ImageDownloadOptions + /// public class ImageDownloadOptions { /// /// Download Art Image /// + /// true if art; otherwise, false. public bool Art { get; set; } /// /// Download Logo Image /// + /// true if logo; otherwise, false. public bool Logo { get; set; } /// /// Download Primary Image /// + /// true if primary; otherwise, false. public bool Primary { get; set; } /// /// Download Backdrop Images /// + /// true if backdrops; otherwise, false. public bool Backdrops { get; set; } /// /// Download Disc Image /// + /// true if disc; otherwise, false. public bool Disc { get; set; } /// /// Download Thumb Image /// + /// true if thumb; otherwise, false. public bool Thumb { get; set; } /// /// Download Banner Image /// + /// true if banner; otherwise, false. public bool Banner { get; set; } + /// + /// Initializes a new instance of the class. + /// + public ImageDownloadOptions() + { + Art = true; + Logo = true; + Primary = true; + Backdrops = true; + Disc = true; + Thumb = true; + Banner = true; + } } } diff --git a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj index 458b515717..68836a2454 100644 --- a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj +++ b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj @@ -288,7 +288,9 @@ PreserveNewest - + + PreserveNewest + PreserveNewest