From 97680efefbe31b177ee900612772dbdbe4e38ea0 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 4 Nov 2013 10:25:06 -0500 Subject: [PATCH] fixes #615 - Add settings to control movie/series min backdrop download size --- MediaBrowser.Model/Configuration/ServerConfiguration.cs | 8 ++++---- MediaBrowser.Providers/Movies/MovieDbImagesProvider.cs | 2 +- MediaBrowser.Providers/TV/TvdbSeriesImageProvider.cs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index d0eff49fad..1f75969be7 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -220,13 +220,13 @@ namespace MediaBrowser.Model.Configuration /// Gets or sets the width of the min movie backdrop. /// /// The width of the min movie backdrop. - public int MinMovieBackdropWidth { get; set; } + public int MinMovieBackdropDownloadWidth { get; set; } /// /// Gets or sets the width of the min series backdrop. /// /// The width of the min series backdrop. - public int MinSeriesBackdropWidth { get; set; } + public int MinSeriesBackdropDownloadWidth { get; set; } /// /// Gets or sets a value indicating whether [enable people prefix sub folders]. @@ -283,8 +283,8 @@ namespace MediaBrowser.Model.Configuration SeasonZeroDisplayName = "Specials"; - MinMovieBackdropWidth = 1920; - MinSeriesBackdropWidth = 1920; + MinMovieBackdropDownloadWidth = 1280; + MinSeriesBackdropDownloadWidth = 1280; } } diff --git a/MediaBrowser.Providers/Movies/MovieDbImagesProvider.cs b/MediaBrowser.Providers/Movies/MovieDbImagesProvider.cs index 416ebbc1b5..d3645fdc8b 100644 --- a/MediaBrowser.Providers/Movies/MovieDbImagesProvider.cs +++ b/MediaBrowser.Providers/Movies/MovieDbImagesProvider.cs @@ -215,7 +215,7 @@ namespace MediaBrowser.Providers.Movies cancellationToken.ThrowIfCancellationRequested(); var eligibleBackdrops = images - .Where(i => i.Type == ImageType.Backdrop && i.Width.HasValue && i.Width.Value >= ConfigurationManager.Configuration.MinMovieBackdropWidth) + .Where(i => i.Type == ImageType.Backdrop && i.Width.HasValue && i.Width.Value >= ConfigurationManager.Configuration.MinMovieBackdropDownloadWidth) .ToList(); var backdropLimit = ConfigurationManager.Configuration.MaxBackdrops; diff --git a/MediaBrowser.Providers/TV/TvdbSeriesImageProvider.cs b/MediaBrowser.Providers/TV/TvdbSeriesImageProvider.cs index 2e19a853db..5fc7b50f9e 100644 --- a/MediaBrowser.Providers/TV/TvdbSeriesImageProvider.cs +++ b/MediaBrowser.Providers/TV/TvdbSeriesImageProvider.cs @@ -238,7 +238,7 @@ namespace MediaBrowser.Providers.TV if (int.TryParse(parts[0], NumberStyles.Any, UsCulture, out width)) { - return width >= ConfigurationManager.Configuration.MinSeriesBackdropWidth; + return width >= ConfigurationManager.Configuration.MinSeriesBackdropDownloadWidth; } return true;