// Next Proto number ====> 62

        /// <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 = 14;

            EnableInternetProviders      = true; //initial installs will need these
            InternetProviderExcludeTypes = new string[] { };

            MetadataRefreshDays       = 30;
            PreferredMetadataLanguage = "en";
            MetadataCountryCode       = "US";
            TmdbFetchedProfileSize    = "w185";  //w185 w45 h632 or original
            TmdbFetchedPosterSize     = "w500";  //w500, w342, w185 or original
            TmdbFetchedBackdropSize   = "w1280"; //w1280, w780 or original
            DownloadMovieImages       = new ImageDownloadOptions {
                Backdrops = true, Primary = true
            };
            DownloadSeriesImages = new ImageDownloadOptions {
                Backdrops = true, Primary = true, Banner = true, Logo = true
            };
            DownloadSeasonImages = new ImageDownloadOptions {
                Backdrops = false, Primary = true, Banner = true
            };
            DownloadMusicArtistImages = new ImageDownloadOptions {
                Backdrops = true, Primary = true, Banner = true, Thumb = true
            };
            DownloadMusicAlbumImages = new ImageDownloadOptions {
                Backdrops = true, Primary = false
            };
            DownloadHDFanArt = true;
            MaxBackdrops     = 4;

            SortReplaceCharacters = new [] { ".", "+", "%" };
            SortRemoveCharacters  = new [] { ",", "&", "-", "{", "}", "'" };
            SortRemoveWords       = new [] { "the", "a", "an" };
        }
Exemplo n.º 2
0
        /// <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()
        {
            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";
        }