Skip to content

The Free Software Media System - Server Backend & API

Fix inverted condition

Cody Robibero35bd0c00c965
diff --git a/Emby.Server.Implementations/Playlists/PlaylistManager.cs b/Emby.Server.Implementations/Playlists/PlaylistManager.cs
index c783f2b01f..d2e2fd7d56 100644
--- a/Emby.Server.Implementations/Playlists/PlaylistManager.cs
+++ b/Emby.Server.Implementations/Playlists/PlaylistManager.cs
@@ -85,7 +85,7 @@ namespace Emby.Server.Implementations.Playlists
throw new ArgumentException("No item exists with the supplied Id");
}
- if (item.MediaType == MediaType.Unknown)
+ if (item.MediaType != MediaType.Unknown)
{
options.MediaType = item.MediaType;
}
@@ -107,7 +107,7 @@ namespace Emby.Server.Implementations.Playlists
}
}
- if (options.MediaType is null || options.MediaType == MediaType.Unknown)
+ if (options.MediaType is not null && options.MediaType != MediaType.Unknown)
{
break;
}