/// <summary>
        /// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
        /// </summary>
        public ServerConfiguration()
            : base()
        {
            MediaEncodingQuality = EncodingQuality.Auto;
            ImageSavingConvention = ImageSavingConvention.Compatible;
            HttpServerPortNumber = 8096;
            EnableDashboardResponseCaching = true;

            EnableAutomaticRestart = true;
            EnablePeoplePrefixSubFolders = true;

            EnableUPnP = true;
            DownMixAudioBoost = 2;

            MinResumePct = 5;
            MaxResumePct = 90;

            // 5 minutes
            MinResumeDurationSeconds = 300;

            RealtimeMonitorDelay = 30;

            EnableInternetProviders = true; //initial installs will need these

            PathSubstitutions = new PathSubstitution[] { };

            PreferredMetadataLanguage = "en";
            MetadataCountryCode = "US";

            SortReplaceCharacters = new[] { ".", "+", "%" };
            SortRemoveCharacters = new[] { ",", "&", "-", "{", "}", "'" };
            SortRemoveWords = new[] { "the", "a", "an" };

            ManualLoginClients = new string[] { };

            SeasonZeroDisplayName = "Specials";

            EnableRealtimeMonitor = true;

            UICulture = "en-us";

            MetadataOptions = new[]
            {
                new MetadataOptions(1, 1280) {ItemType = "Book"},

                new MetadataOptions(1, 1280)
                {
                    ItemType = "MusicAlbum",
                    ImageOptions = new []
                    {
                        new ImageOption
                        {
                            Limit = 1,
                            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
                        }
                    }
                },

                new MetadataOptions(0, 1280) {ItemType = "Season"}
            };

            SubtitleOptions = new SubtitleOptions();
            LiveTvOptions = new LiveTvOptions();
            TvFileOrganizationOptions = new TvFileOrganizationOptions();
        }
Exemplo n.º 2
0
        /// <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();
        }
Exemplo n.º 3
0
        /// <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;

            EnableAutomaticRestart       = true;
            EnablePeoplePrefixSubFolders = true;

            EnableUPnP        = true;
            DownMixAudioBoost = 2;

            MinResumePct             = 5;
            MaxResumePct             = 90;
            MinResumeDurationSeconds = Convert.ToInt32(TimeSpan.FromMinutes(5).TotalSeconds);

            RealtimeMonitorDelay = 30;

            EnableInternetProviders = true; //initial installs will need these

            PathSubstitutions = new PathSubstitution[] { };

            MetadataRefreshDays       = 30;
            PreferredMetadataLanguage = "en";
            MetadataCountryCode       = "US";

            SortReplaceCharacters = new[] { ".", "+", "%" };
            SortRemoveCharacters  = new[] { ",", "&", "-", "{", "}", "'" };
            SortRemoveWords       = new[] { "the", "a", "an" };

            ManualLoginClients = new string[] { };

            SeasonZeroDisplayName = "Specials";

            LiveTvOptions = new LiveTvOptions();

            TvFileOrganizationOptions = new TvFileOrganizationOptions();

            EnableRealtimeMonitor = true;

            List <MetadataOptions> 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";

            NotificationOptions = new NotificationOptions();

            SubtitleOptions = new SubtitleOptions();

            ChannelOptions = new ChannelOptions();
            ChapterOptions = new ChapterOptions();
        }
Exemplo n.º 4
0
        /// <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";
        }