Skip to content

The Free Software Media System - Server Backend & API

Backport pull request #15462 from jellyfin/release-10.11.z

theguymadmaxe51680cf56f4
diff --git a/Emby.Server.Implementations/Library/MediaSourceManager.cs b/Emby.Server.Implementations/Library/MediaSourceManager.cs
index 750346169f..c667fb0600 100644
--- a/Emby.Server.Implementations/Library/MediaSourceManager.cs
+++ b/Emby.Server.Implementations/Library/MediaSourceManager.cs
@@ -226,6 +226,11 @@ namespace Emby.Server.Implementations.Library
/// <inheritdoc />>
public MediaProtocol GetPathProtocol(string path)
{
+ if (string.IsNullOrEmpty(path))
+ {
+ return MediaProtocol.File;
+ }
+
if (path.StartsWith("Rtsp", StringComparison.OrdinalIgnoreCase))
{
return MediaProtocol.Rtsp;