aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs')
-rw-r--r--MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs28
1 files changed, 13 insertions, 15 deletions
diff --git a/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs b/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs
index 7dfda73bf..0aaf4fcd9 100644
--- a/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs
+++ b/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs
@@ -30,6 +30,11 @@ namespace MediaBrowser.Controller.Extensions
public const string FfmpegProbeSizeKey = "FFmpeg:probesize";
/// <summary>
+ /// The key for the skipping FFmpeg validation.
+ /// </summary>
+ public const string FfmpegSkipValidationKey = "FFmpeg:novalidation";
+
+ /// <summary>
/// The key for the FFmpeg analyze duration option.
/// </summary>
public const string FfmpegAnalyzeDurationKey = "FFmpeg:analyzeduration";
@@ -65,11 +70,6 @@ namespace MediaBrowser.Controller.Extensions
public const string SqliteCacheSizeKey = "sqlite:cacheSize";
/// <summary>
- /// Disable second level cache of sqlite.
- /// </summary>
- public const string SqliteDisableSecondLevelCacheKey = "sqlite:disableSecondLevelCache";
-
- /// <summary>
/// Gets a value indicating whether the application should host static web content from the <see cref="IConfiguration"/>.
/// </summary>
/// <param name="configuration">The configuration to retrieve the value from.</param>
@@ -95,6 +95,14 @@ namespace MediaBrowser.Controller.Extensions
=> configuration[FfmpegAnalyzeDurationKey];
/// <summary>
+ /// Gets a value indicating whether the server should validate FFmpeg during startup.
+ /// </summary>
+ /// <param name="configuration">The configuration to read the setting from.</param>
+ /// <returns><c>true</c> if the server should validate FFmpeg during startup, otherwise <c>false</c>.</returns>
+ public static bool GetFFmpegSkipValidation(this IConfiguration configuration)
+ => configuration.GetValue<bool>(FfmpegSkipValidationKey);
+
+ /// <summary>
/// Gets a value indicating whether playlists should allow duplicate entries from the <see cref="IConfiguration"/>.
/// </summary>
/// <param name="configuration">The configuration to read the setting from.</param>
@@ -133,15 +141,5 @@ namespace MediaBrowser.Controller.Extensions
/// <returns>The sqlite cache size.</returns>
public static int? GetSqliteCacheSize(this IConfiguration configuration)
=> configuration.GetValue<int?>(SqliteCacheSizeKey);
-
- /// <summary>
- /// Gets whether second level cache disabled from the <see cref="IConfiguration" />.
- /// </summary>
- /// <param name="configuration">The configuration to read the setting from.</param>
- /// <returns>Whether second level cache disabled.</returns>
- public static bool GetSqliteSecondLevelCacheDisabled(this IConfiguration configuration)
- {
- return configuration.GetValue<bool>(SqliteDisableSecondLevelCacheKey);
- }
}
}