From 6a5d6b5d4c7fdaf775f72e219928bf41fbb335dc Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 20 Apr 2013 12:29:50 -0400 Subject: [PATCH] forgot to mark file copy if newer --- .../Configuration/ServerConfiguration.cs | 16 ++++++------- .../Entities/ImageDownloadOptions.cs | 23 +++++++++++++++++++ .../MediaBrowser.WebDashboard.csproj | 4 +++- 3 files changed, 34 insertions(+), 9 deletions(-) diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index ab7d7cb9d..554e7afd1 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 c69c759ac..92e989a34 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 458b51571..68836a245 100644 --- a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj +++ b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj @@ -288,7 +288,9 @@ PreserveNewest - + + PreserveNewest + PreserveNewest