mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 01:24:44 +01:00
added more metadata control
This commit is contained in:
81
MediaBrowser.Model/Configuration/ImageDownloadOptions.cs
Normal file
81
MediaBrowser.Model/Configuration/ImageDownloadOptions.cs
Normal file
@@ -0,0 +1,81 @@
|
||||
|
||||
namespace MediaBrowser.Model.Configuration
|
||||
{
|
||||
/// <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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class MetadataOptions.
|
||||
/// </summary>
|
||||
public class MetadataOptions
|
||||
{
|
||||
public int MaxBackdrops { get; set; }
|
||||
|
||||
public int MinBackdropWidth { get; set; }
|
||||
|
||||
public MetadataOptions()
|
||||
{
|
||||
MaxBackdrops = 3;
|
||||
MinBackdropWidth = 1280;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Weather;
|
||||
using MediaBrowser.Model.Weather;
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Configuration
|
||||
@@ -87,12 +86,6 @@ namespace MediaBrowser.Model.Configuration
|
||||
/// <value>The metadata country code.</value>
|
||||
public string MetadataCountryCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the max backdrops.
|
||||
/// </summary>
|
||||
/// <value>The max backdrops.</value>
|
||||
public int MaxBackdrops { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Options for specific art to download for movies.
|
||||
/// </summary>
|
||||
@@ -204,18 +197,6 @@ namespace MediaBrowser.Model.Configuration
|
||||
/// <value>The image saving convention.</value>
|
||||
public ImageSavingConvention ImageSavingConvention { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the width of the min movie backdrop.
|
||||
/// </summary>
|
||||
/// <value>The width of the min movie backdrop.</value>
|
||||
public int MinMovieBackdropDownloadWidth { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the width of the min series backdrop.
|
||||
/// </summary>
|
||||
/// <value>The width of the min series backdrop.</value>
|
||||
public int MinSeriesBackdropDownloadWidth { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [enable people prefix sub folders].
|
||||
/// </summary>
|
||||
@@ -232,6 +213,12 @@ namespace MediaBrowser.Model.Configuration
|
||||
public bool EnableEpisodeChapterImageExtraction { get; set; }
|
||||
public bool EnableOtherVideoChapterImageExtraction { get; set; }
|
||||
|
||||
public MetadataOptions MovieOptions { get; set; }
|
||||
public MetadataOptions TvOptions { get; set; }
|
||||
public MetadataOptions MusicOptions { get; set; }
|
||||
public MetadataOptions GameOptions { get; set; }
|
||||
public MetadataOptions BookOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
|
||||
/// </summary>
|
||||
@@ -272,7 +259,6 @@ namespace MediaBrowser.Model.Configuration
|
||||
};
|
||||
DownloadMusicArtistImages = new ImageDownloadOptions();
|
||||
DownloadMusicAlbumImages = new ImageDownloadOptions();
|
||||
MaxBackdrops = 3;
|
||||
|
||||
SortReplaceCharacters = new[] { ".", "+", "%" };
|
||||
SortRemoveCharacters = new[] { ",", "&", "-", "{", "}", "'" };
|
||||
@@ -280,8 +266,20 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
SeasonZeroDisplayName = "Specials";
|
||||
|
||||
MinMovieBackdropDownloadWidth = 1280;
|
||||
MinSeriesBackdropDownloadWidth = 1280;
|
||||
MovieOptions = new MetadataOptions();
|
||||
TvOptions = new MetadataOptions();
|
||||
|
||||
MusicOptions = new MetadataOptions()
|
||||
{
|
||||
MaxBackdrops = 1
|
||||
};
|
||||
|
||||
GameOptions = new MetadataOptions();
|
||||
|
||||
BookOptions = new MetadataOptions
|
||||
{
|
||||
MaxBackdrops = 1
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user