mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fix inverted condition
This commit is contained in:
parent
2920611ffc
commit
35bd0c00c9
@ -85,7 +85,7 @@ namespace Emby.Server.Implementations.Playlists
|
|||||||
throw new ArgumentException("No item exists with the supplied Id");
|
throw new ArgumentException("No item exists with the supplied Id");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.MediaType == MediaType.Unknown)
|
if (item.MediaType != MediaType.Unknown)
|
||||||
{
|
{
|
||||||
options.MediaType = item.MediaType;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user