mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-03 21:54:26 -04:00
fixes #615 - Add settings to control movie/series min backdrop download size
This commit is contained in:
parent
138bad316b
commit
97680efefb
@ -220,13 +220,13 @@ namespace MediaBrowser.Model.Configuration
|
|||||||
/// Gets or sets the width of the min movie backdrop.
|
/// Gets or sets the width of the min movie backdrop.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The width of the min movie backdrop.</value>
|
/// <value>The width of the min movie backdrop.</value>
|
||||||
public int MinMovieBackdropWidth { get; set; }
|
public int MinMovieBackdropDownloadWidth { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the width of the min series backdrop.
|
/// Gets or sets the width of the min series backdrop.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The width of the min series backdrop.</value>
|
/// <value>The width of the min series backdrop.</value>
|
||||||
public int MinSeriesBackdropWidth { get; set; }
|
public int MinSeriesBackdropDownloadWidth { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether [enable people prefix sub folders].
|
/// Gets or sets a value indicating whether [enable people prefix sub folders].
|
||||||
@ -283,8 +283,8 @@ namespace MediaBrowser.Model.Configuration
|
|||||||
|
|
||||||
SeasonZeroDisplayName = "Specials";
|
SeasonZeroDisplayName = "Specials";
|
||||||
|
|
||||||
MinMovieBackdropWidth = 1920;
|
MinMovieBackdropDownloadWidth = 1280;
|
||||||
MinSeriesBackdropWidth = 1920;
|
MinSeriesBackdropDownloadWidth = 1280;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -215,7 +215,7 @@ namespace MediaBrowser.Providers.Movies
|
|||||||
cancellationToken.ThrowIfCancellationRequested();
|
cancellationToken.ThrowIfCancellationRequested();
|
||||||
|
|
||||||
var eligibleBackdrops = images
|
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();
|
.ToList();
|
||||||
|
|
||||||
var backdropLimit = ConfigurationManager.Configuration.MaxBackdrops;
|
var backdropLimit = ConfigurationManager.Configuration.MaxBackdrops;
|
||||||
|
@ -238,7 +238,7 @@ namespace MediaBrowser.Providers.TV
|
|||||||
|
|
||||||
if (int.TryParse(parts[0], NumberStyles.Any, UsCulture, out width))
|
if (int.TryParse(parts[0], NumberStyles.Any, UsCulture, out width))
|
||||||
{
|
{
|
||||||
return width >= ConfigurationManager.Configuration.MinSeriesBackdropWidth;
|
return width >= ConfigurationManager.Configuration.MinSeriesBackdropDownloadWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user