/// <summary> /// Initializes a new instance of the <see cref="ServerConfiguration" /> class. /// </summary> public ServerConfiguration() : base() { ImageSavingConvention = ImageSavingConvention.Legacy; HttpServerPortNumber = 8096; LegacyWebSocketPortNumber = 8945; EnableHttpLevelLogging = true; EnableDashboardResponseCaching = true; EnableVideoImageExtraction = true; #if (DEBUG) EnableDeveloperTools = true; #endif MinResumePct = 5; MaxResumePct = 90; MinResumeDurationSeconds = Convert.ToInt32(TimeSpan.FromMinutes(5).TotalSeconds); FileWatcherDelay = 8; RecentItemDays = 10; EnableInternetProviders = true; //initial installs will need these InternetProviderExcludeTypes = new string[] { }; ManualLoginClients = new ManualLoginCategory[] { }; MetadataRefreshDays = 30; PreferredMetadataLanguage = "en"; MetadataCountryCode = "US"; DownloadMovieImages = new ImageDownloadOptions(); DownloadSeriesImages = new ImageDownloadOptions(); DownloadSeasonImages = new ImageDownloadOptions { Backdrops = false }; DownloadMusicArtistImages = new ImageDownloadOptions(); DownloadMusicAlbumImages = new ImageDownloadOptions(); MaxBackdrops = 3; SortReplaceCharacters = new[] { ".", "+", "%" }; SortRemoveCharacters = new[] { ",", "&", "-", "{", "}", "'" }; SortRemoveWords = new[] { "the", "a", "an" }; SeasonZeroDisplayName = "Specials"; MinMovieBackdropDownloadWidth = 1280; MinSeriesBackdropDownloadWidth = 1280; }
/// <summary> /// Initializes a new instance of the <see cref="ServerConfiguration" /> class. /// </summary> public ServerConfiguration() : base() { HttpServerPortNumber = 8096; LegacyWebSocketPortNumber = 8945; EnableHttpLevelLogging = true; EnableDashboardResponseCaching = true; #if (DEBUG) EnableDeveloperTools = true; #endif MinResumePct = 5; MaxResumePct = 90; MinResumeDurationSeconds = Convert.ToInt32(TimeSpan.FromMinutes(5).TotalSeconds); FileWatcherDelay = 8; RecentItemDays = 10; EnableInternetProviders = true; //initial installs will need these InternetProviderExcludeTypes = new string[] { }; ManualLoginClients = new ManualLoginCategory[] { }; MetadataRefreshDays = 30; PreferredMetadataLanguage = "en"; MetadataCountryCode = "US"; TmdbFetchedProfileSize = "original"; //w185 w45 h632 or original TmdbFetchedPosterSize = "original"; //w500, w342, w185 or original TmdbFetchedBackdropSize = "original"; //w1280, w780 or original DownloadMovieImages = new ImageDownloadOptions(); DownloadSeriesImages = new ImageDownloadOptions(); DownloadSeasonImages = new ImageDownloadOptions(); DownloadMusicArtistImages = new ImageDownloadOptions(); DownloadMusicAlbumImages = new ImageDownloadOptions(); DownloadHDFanArt = true; MaxBackdrops = 3; SortReplaceCharacters = new[] { ".", "+", "%" }; SortRemoveCharacters = new[] { ",", "&", "-", "{", "}", "'" }; SortRemoveWords = new[] { "the", "a", "an" }; SeasonZeroDisplayName = "Specials"; }
/// <summary> /// Initializes a new instance of the <see cref="ServerConfiguration" /> class. /// </summary> public ServerConfiguration() : base() { MediaEncodingQuality = EncodingQuality.Auto; ImageSavingConvention = ImageSavingConvention.Compatible; HttpServerPortNumber = 8096; LegacyWebSocketPortNumber = 8945; EnableHttpLevelLogging = true; EnableDashboardResponseCaching = true; EnableVideoImageExtraction = true; EnableMovieChapterImageExtraction = true; EnableEpisodeChapterImageExtraction = false; EnableOtherVideoChapterImageExtraction = false; EnableAutomaticRestart = true; MinResumePct = 5; MaxResumePct = 90; MinResumeDurationSeconds = Convert.ToInt32(TimeSpan.FromMinutes(5).TotalSeconds); FileWatcherDelay = 8; RecentItemDays = 10; EnableInternetProviders = true; //initial installs will need these ManualLoginClients = new ManualLoginCategory[] { }; MetadataRefreshDays = 30; PreferredMetadataLanguage = "en"; MetadataCountryCode = "US"; DownloadMovieImages = new ImageDownloadOptions(); DownloadSeriesImages = new ImageDownloadOptions(); DownloadSeasonImages = new ImageDownloadOptions { Backdrops = false }; DownloadMusicArtistImages = new ImageDownloadOptions(); DownloadMusicAlbumImages = new ImageDownloadOptions(); SortReplaceCharacters = new[] { ".", "+", "%" }; SortRemoveCharacters = new[] { ",", "&", "-", "{", "}", "'" }; SortRemoveWords = new[] { "the", "a", "an" }; SeasonZeroDisplayName = "Specials"; MovieOptions = new MetadataOptions(); TvOptions = new MetadataOptions(); MusicOptions = new MetadataOptions() { MaxBackdrops = 1 }; GameOptions = new MetadataOptions(); BookOptions = new MetadataOptions { MaxBackdrops = 1 }; LiveTvOptions = new LiveTvOptions(); TvFileOrganizationOptions = new TvFileOrganizationOptions(); }
/// <summary> /// Initializes a new instance of the <see cref="ServerConfiguration" /> class. /// </summary> public ServerConfiguration() : base() { MediaEncodingQuality = EncodingQuality.Auto; ImageSavingConvention = ImageSavingConvention.Compatible; HttpServerPortNumber = 8096; LegacyWebSocketPortNumber = 8945; EnableHttpLevelLogging = true; EnableDashboardResponseCaching = true; EnableMovieChapterImageExtraction = true; EnableEpisodeChapterImageExtraction = false; EnableOtherVideoChapterImageExtraction = false; EnableAutomaticRestart = true; EnablePeoplePrefixSubFolders = true; EnableUPnP = true; MinResumePct = 5; MaxResumePct = 90; MinResumeDurationSeconds = Convert.ToInt32(TimeSpan.FromMinutes(5).TotalSeconds); RealtimeWatcherDelay = 20; RecentItemDays = 10; EnableInternetProviders = true; //initial installs will need these ManualLoginClients = new ManualLoginCategory[] { }; PathSubstitutions = new PathSubstitution[] { }; MetadataRefreshDays = 30; PreferredMetadataLanguage = "en"; MetadataCountryCode = "US"; SortReplaceCharacters = new[] { ".", "+", "%" }; SortRemoveCharacters = new[] { ",", "&", "-", "{", "}", "'" }; SortRemoveWords = new[] { "the", "a", "an" }; SeasonZeroDisplayName = "Specials"; LiveTvOptions = new LiveTvOptions(); TvFileOrganizationOptions = new TvFileOrganizationOptions(); EnableRealtimeMonitor = true; var options = new List <MetadataOptions> { new MetadataOptions(1, 1280) { ItemType = "Book" }, new MetadataOptions(1, 1280) { ItemType = "MusicAlbum" }, new MetadataOptions(1, 1280) { ItemType = "MusicArtist" }, new MetadataOptions(0, 1280) { ItemType = "Season" } }; MetadataOptions = options.ToArray(); }
/// <summary> /// Initializes a new instance of the <see cref="ServerConfiguration" /> class. /// </summary> public ServerConfiguration() : base() { MediaEncodingQuality = EncodingQuality.Auto; ImageSavingConvention = ImageSavingConvention.Compatible; HttpServerPortNumber = 8096; LegacyWebSocketPortNumber = 8945; EnableHttpLevelLogging = true; EnableDashboardResponseCaching = true; EnableMovieChapterImageExtraction = true; EnableEpisodeChapterImageExtraction = false; EnableOtherVideoChapterImageExtraction = false; EnableAutomaticRestart = true; EnablePeoplePrefixSubFolders = true; EnableUPnP = true; MinResumePct = 5; MaxResumePct = 90; MinResumeDurationSeconds = Convert.ToInt32(TimeSpan.FromMinutes(5).TotalSeconds); RealtimeMonitorDelay = 30; RecentItemDays = 10; EnableInternetProviders = true; //initial installs will need these ManualLoginClients = new ManualLoginCategory[] { }; PathSubstitutions = new PathSubstitution[] { }; MetadataRefreshDays = 30; PreferredMetadataLanguage = "en"; MetadataCountryCode = "US"; SortReplaceCharacters = new[] { ".", "+", "%" }; SortRemoveCharacters = new[] { ",", "&", "-", "{", "}", "'" }; SortRemoveWords = new[] { "the", "a", "an" }; SeasonZeroDisplayName = "Specials"; LiveTvOptions = new LiveTvOptions(); TvFileOrganizationOptions = new TvFileOrganizationOptions(); EnableRealtimeMonitor = true; var options = new List<MetadataOptions> { new MetadataOptions(1, 1280) {ItemType = "Book"}, new MetadataOptions(1, 1280) {ItemType = "MusicAlbum"}, new MetadataOptions(1, 1280) {ItemType = "MusicArtist"}, new MetadataOptions(0, 1280) {ItemType = "Season"} }; MetadataOptions = options.ToArray(); DlnaOptions = new DlnaOptions(); UICulture = "en-us"; }