diff --git a/Emby.Server.Implementations/ConfigurationOptions.cs b/Emby.Server.Implementations/ConfigurationOptions.cs
index d0f3d67230..31fb5ca58c 100644
--- a/Emby.Server.Implementations/ConfigurationOptions.cs
+++ b/Emby.Server.Implementations/ConfigurationOptions.cs
@@ -9,7 +9,8 @@ namespace Emby.Server.Implementations
{
{ "HttpListenerHost:DefaultRedirectPath", "web/index.html" },
{ FfmpegProbeSizeKey, "1G" },
- { FfmpegAnalyzeDurationKey, "200M" }
+ { FfmpegAnalyzeDurationKey, "200M" },
+ { PlaylistsAllowDuplicatesKey, bool.TrueString }
};
}
}
diff --git a/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs b/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs
index 76c9b4b26c..48316499a4 100644
--- a/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs
+++ b/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs
@@ -13,24 +13,37 @@ namespace MediaBrowser.Controller.Extensions
public const string FfmpegProbeSizeKey = "FFmpeg:probesize";
///
- /// The key for the FFmpeg analyse duration option.
+ /// The key for the FFmpeg analyze duration option.
///
public const string FfmpegAnalyzeDurationKey = "FFmpeg:analyzeduration";
///
- /// Retrieves the FFmpeg probe size from the .
+ /// The key for a setting that indicates whether playlists should allow duplicate entries.
///
- /// This configuration.
+ public const string PlaylistsAllowDuplicatesKey = "playlists:allowDuplicates";
+
+ ///
+ /// Gets the FFmpeg probe size from the .
+ ///
+ /// The configuration to read the setting from.
/// The FFmpeg probe size option.
public static string GetFFmpegProbeSize(this IConfiguration configuration)
=> configuration[FfmpegProbeSizeKey];
///
- /// Retrieves the FFmpeg analyse duration from the .
+ /// Gets the FFmpeg analyze duration from the .
///
- /// This configuration.
- /// The FFmpeg analyse duration option.
+ /// The configuration to read the setting from.
+ /// The FFmpeg analyze duration option.
public static string GetFFmpegAnalyzeDuration(this IConfiguration configuration)
=> configuration[FfmpegAnalyzeDurationKey];
+
+ ///
+ /// Gets a value indicating whether playlists should allow duplicate entries from the .
+ ///
+ /// The configuration to read the setting from.
+ /// True if playlists should allow duplicates, otherwise false.
+ public static bool DoPlaylistsAllowDuplicates(this IConfiguration configuration)
+ => configuration.GetValue(PlaylistsAllowDuplicatesKey);
}
}
diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csproj
index 88e9055e84..bcca9e4a18 100644
--- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj
+++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj
@@ -9,6 +9,7 @@
+