You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Model/Configuration/LibraryOptions.cs

103 lines
3.1 KiB

#pragma warning disable CS1591
using System;
6 years ago
namespace MediaBrowser.Model.Configuration
{
public class LibraryOptions
{
public LibraryOptions()
{
TypeOptions = Array.Empty<TypeOptions>();
DisabledSubtitleFetchers = Array.Empty<string>();
SubtitleFetcherOrder = Array.Empty<string>();
DisabledLocalMetadataReaders = Array.Empty<string>();
SkipSubtitlesIfAudioTrackMatches = true;
RequirePerfectSubtitleMatch = true;
AutomaticallyAddToCollection = true;
EnablePhotos = true;
SaveSubtitlesWithMedia = true;
EnableRealtimeMonitor = true;
PathInfos = Array.Empty<MediaPathInfo>();
EnableAutomaticSeriesGrouping = true;
SeasonZeroDisplayName = "Specials";
}
6 years ago
public bool EnablePhotos { get; set; }
6 years ago
public bool EnableRealtimeMonitor { get; set; }
6 years ago
public bool EnableChapterImageExtraction { get; set; }
6 years ago
public bool ExtractChapterImagesDuringLibraryScan { get; set; }
6 years ago
public MediaPathInfo[] PathInfos { get; set; }
public bool SaveLocalMetadata { get; set; }
[Obsolete("Disable remote providers in TypeOptions instead")]
6 years ago
public bool EnableInternetProviders { get; set; }
6 years ago
public bool EnableAutomaticSeriesGrouping { get; set; }
6 years ago
public bool EnableEmbeddedTitles { get; set; }
public bool EnableEmbeddedEpisodeInfos { get; set; }
6 years ago
public int AutomaticRefreshIntervalDays { get; set; }
/// <summary>
/// Gets or sets the preferred metadata language.
/// </summary>
/// <value>The preferred metadata language.</value>
public string? PreferredMetadataLanguage { get; set; }
6 years ago
/// <summary>
/// Gets or sets the metadata country code.
/// </summary>
/// <value>The metadata country code.</value>
public string? MetadataCountryCode { get; set; }
6 years ago
public string SeasonZeroDisplayName { get; set; }
public string[]? MetadataSavers { get; set; }
6 years ago
public string[] DisabledLocalMetadataReaders { get; set; }
public string[]? LocalMetadataReaderOrder { get; set; }
6 years ago
public string[] DisabledSubtitleFetchers { get; set; }
6 years ago
public string[] SubtitleFetcherOrder { get; set; }
public bool SkipSubtitlesIfEmbeddedSubtitlesPresent { get; set; }
6 years ago
public bool SkipSubtitlesIfAudioTrackMatches { get; set; }
public string[]? SubtitleDownloadLanguages { get; set; }
6 years ago
public bool RequirePerfectSubtitleMatch { get; set; }
6 years ago
public bool SaveSubtitlesWithMedia { get; set; }
public bool AutomaticallyAddToCollection { get; set; }
6 years ago
public TypeOptions[] TypeOptions { get; set; }
public TypeOptions? GetTypeOptions(string type)
6 years ago
{
foreach (var options in TypeOptions)
{
if (string.Equals(options.Type, type, StringComparison.OrdinalIgnoreCase))
{
return options;
}
}
return null;
}
}
}