aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Playlists
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2023-10-14 11:01:03 -0600
committerCody Robibero <cody@robibe.ro>2023-10-14 11:01:03 -0600
commit35bd0c00c965176d6ddb167605ed3a3eba9a4524 (patch)
tree236972508e5e0d99a97c02914a4646d2f5bd3f76 /Emby.Server.Implementations/Playlists
parent2920611ffc206d845563637c4a865bf3f02d1374 (diff)
Fix inverted condition
Diffstat (limited to 'Emby.Server.Implementations/Playlists')
-rw-r--r--Emby.Server.Implementations/Playlists/PlaylistManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Playlists/PlaylistManager.cs b/Emby.Server.Implementations/Playlists/PlaylistManager.cs
index c783f2b01..d2e2fd7d5 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;
}