/// <summary> /// Initializes a new instance of the <see cref="ServerConfiguration" /> class. /// </summary> public ServerConfiguration() : base() { ImageSavingConvention = ImageSavingConvention.Compatible; PublicPort = 8096; PublicHttpsPort = 8920; HttpServerPortNumber = 8096; HttpsPortNumber = 8920; EnableHttps = false; EnableDashboardResponseCaching = true; EnableDashboardResourceMinification = true; EnableAutomaticRestart = true; DenyIFrameEmbedding = true; EnableUPnP = true; MinResumePct = 5; MaxResumePct = 90; // 5 minutes MinResumeDurationSeconds = 300; EnableLibraryMonitor = AutoOnOff.Auto; RealtimeLibraryMonitorDelay = 40; EnableInternetProviders = true; FindInternetTrailers = true; PathSubstitutions = new PathSubstitution[] { }; ContentTypes = new NameValuePair[] { }; PreferredMetadataLanguage = "en"; MetadataCountryCode = "US"; SortReplaceCharacters = new[] { ".", "+", "%" }; SortRemoveCharacters = new[] { ",", "&", "-", "{", "}", "'" }; SortRemoveWords = new[] { "the", "a", "an" }; SeasonZeroDisplayName = "Specials"; UICulture = "en-us"; PeopleMetadataOptions = new PeopleMetadataOptions(); InsecureApps9 = new[] { "Chromecast", "iOS", "Unknown app", "iPad", "iPhone", "Windows Phone" }; MetadataOptions = new[] { new MetadataOptions(1, 1280) {ItemType = "Book"}, new MetadataOptions(1, 1280) { ItemType = "Movie", ImageOptions = new [] { new ImageOption { Limit = 2, MinWidth = 1280, Type = ImageType.Backdrop }, // Don't download this by default as it's rarely used. new ImageOption { Limit = 0, Type = ImageType.Art }, // Don't download this by default as it's rarely used. new ImageOption { Limit = 0, Type = ImageType.Disc }, new ImageOption { Limit = 1, Type = ImageType.Primary }, new ImageOption { Limit = 0, Type = ImageType.Banner }, new ImageOption { Limit = 1, Type = ImageType.Thumb }, new ImageOption { Limit = 1, Type = ImageType.Logo } } }, new MetadataOptions(1, 1280) { ItemType = "Series", ImageOptions = new [] { new ImageOption { Limit = 2, MinWidth = 1280, Type = ImageType.Backdrop }, // Don't download this by default as it's rarely used. new ImageOption { Limit = 0, Type = ImageType.Art }, new ImageOption { Limit = 1, Type = ImageType.Primary }, new ImageOption { Limit = 1, Type = ImageType.Banner }, new ImageOption { Limit = 1, Type = ImageType.Thumb }, new ImageOption { Limit = 1, Type = ImageType.Logo } } }, new MetadataOptions(1, 1280) { ItemType = "MusicAlbum", ImageOptions = new [] { new ImageOption { Limit = 0, MinWidth = 1280, Type = ImageType.Backdrop }, // Don't download this by default as it's rarely used. new ImageOption { Limit = 0, Type = ImageType.Disc } } }, new MetadataOptions(1, 1280) { ItemType = "MusicArtist", ImageOptions = new [] { new ImageOption { Limit = 1, MinWidth = 1280, Type = ImageType.Backdrop }, // Don't download this by default // They do look great, but most artists won't have them, which means a banner view isn't really possible new ImageOption { Limit = 0, Type = ImageType.Banner }, // Don't download this by default // Generally not used new ImageOption { Limit = 0, Type = ImageType.Art }, // Don't download this by default // Generally not used new ImageOption { Limit = 0, Type = ImageType.Logo } } }, new MetadataOptions(0, 1280) { ItemType = "Season" } }; }
/// <summary> /// Initializes a new instance of the <see cref="ServerConfiguration" /> class. /// </summary> public ServerConfiguration() : base() { ImageSavingConvention = ImageSavingConvention.Compatible; PublicPort = 8096; PublicHttpsPort = 8920; HttpServerPortNumber = 8096; HttpsPortNumber = 8920; EnableHttps = false; EnableDashboardResponseCaching = true; EnableDashboardResourceMinification = true; EnableAutomaticRestart = true; DenyIFrameEmbedding = true; EnableUPnP = true; MinResumePct = 5; MaxResumePct = 90; // 5 minutes MinResumeDurationSeconds = 300; EnableLibraryMonitor = AutoOnOff.Auto; RealtimeLibraryMonitorDelay = 40; EnableInternetProviders = true; FindInternetTrailers = true; PathSubstitutions = new PathSubstitution[] { }; ContentTypes = new NameValuePair[] { }; PreferredMetadataLanguage = "en"; MetadataCountryCode = "US"; SortReplaceCharacters = new[] { ".", "+", "%" }; SortRemoveCharacters = new[] { ",", "&", "-", "{", "}", "'" }; SortRemoveWords = new[] { "the", "a", "an" }; SeasonZeroDisplayName = "Specials"; UICulture = "en-us"; PeopleMetadataOptions = new PeopleMetadataOptions(); InsecureApps9 = new[] { "Chromecast", "iOS", "Unknown app", "iPad", "iPhone", "Windows Phone" }; MetadataOptions = new[] { new MetadataOptions(1, 1280) { ItemType = "Book" }, new MetadataOptions(1, 1280) { ItemType = "Movie", ImageOptions = new [] { new ImageOption { Limit = 2, MinWidth = 1280, Type = ImageType.Backdrop }, // Don't download this by default as it's rarely used. new ImageOption { Limit = 0, Type = ImageType.Art }, // Don't download this by default as it's rarely used. new ImageOption { Limit = 0, Type = ImageType.Disc }, new ImageOption { Limit = 1, Type = ImageType.Primary }, new ImageOption { Limit = 0, Type = ImageType.Banner }, new ImageOption { Limit = 1, Type = ImageType.Thumb }, new ImageOption { Limit = 1, Type = ImageType.Logo } } }, new MetadataOptions(1, 1280) { ItemType = "Series", ImageOptions = new [] { new ImageOption { Limit = 2, MinWidth = 1280, Type = ImageType.Backdrop }, // Don't download this by default as it's rarely used. new ImageOption { Limit = 0, Type = ImageType.Art }, new ImageOption { Limit = 1, Type = ImageType.Primary }, new ImageOption { Limit = 1, Type = ImageType.Banner }, new ImageOption { Limit = 1, Type = ImageType.Thumb }, new ImageOption { Limit = 1, Type = ImageType.Logo } } }, new MetadataOptions(1, 1280) { ItemType = "MusicAlbum", ImageOptions = new [] { new ImageOption { Limit = 0, MinWidth = 1280, Type = ImageType.Backdrop }, // Don't download this by default as it's rarely used. new ImageOption { Limit = 0, Type = ImageType.Disc } } }, new MetadataOptions(1, 1280) { ItemType = "MusicArtist", ImageOptions = new [] { new ImageOption { Limit = 1, MinWidth = 1280, Type = ImageType.Backdrop }, // Don't download this by default // They do look great, but most artists won't have them, which means a banner view isn't really possible new ImageOption { Limit = 0, Type = ImageType.Banner }, // Don't download this by default // Generally not used new ImageOption { Limit = 0, Type = ImageType.Art }, // Don't download this by default // Generally not used new ImageOption { Limit = 0, Type = ImageType.Logo } } }, new MetadataOptions(0, 1280) { ItemType = "Season" } }; }