소스 검색

Fix inverted condition

Cody Robibero 1 년 전
부모
커밋
35bd0c00c9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Emby.Server.Implementations/Playlists/PlaylistManager.cs

+ 2 - 2
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;
                     }