Skip to content

The Free Software Media System - Server Backend & API

Fix inverted SkipWhile

crobiberoa15e126ef87d
diff --git a/Jellyfin.Api/Controllers/TvShowsController.cs b/Jellyfin.Api/Controllers/TvShowsController.cs
index 03fd1846d7..ca18901e5d 100644
--- a/Jellyfin.Api/Controllers/TvShowsController.cs
+++ b/Jellyfin.Api/Controllers/TvShowsController.cs
@@ -267,7 +267,7 @@ namespace Jellyfin.Api.Controllers
if (startItemId.HasValue)
{
episodes = episodes
- .SkipWhile(i => startItemId.Value.Equals(i.Id))
+ .SkipWhile(i => !startItemId.Value.Equals(i.Id))
.ToList();
}