aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/TvShowsController.cs
diff options
context:
space:
mode:
authorNiels van Velzen <git@ndat.nl>2022-08-14 12:58:38 +0200
committerNiels van Velzen <git@ndat.nl>2022-08-14 12:58:38 +0200
commit61afd029dfbc3e3d7d14a980ce1682cfc8a04b94 (patch)
tree40e24802a9996b403d4585f9ea4b14daf4625ad1 /Jellyfin.Api/Controllers/TvShowsController.cs
parent0f9124423941f7d2e00333942d3766c4cb8bac92 (diff)
Check for empty guid
Diffstat (limited to 'Jellyfin.Api/Controllers/TvShowsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/TvShowsController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/TvShowsController.cs b/Jellyfin.Api/Controllers/TvShowsController.cs
index a74538b00..fc376d069 100644
--- a/Jellyfin.Api/Controllers/TvShowsController.cs
+++ b/Jellyfin.Api/Controllers/TvShowsController.cs
@@ -278,7 +278,7 @@ namespace Jellyfin.Api.Controllers
}
// This must be the last filter
- if (adjacentTo.HasValue)
+ if (adjacentTo.HasValue && !adjacentTo.Value.Equals(default))
{
episodes = UserViewBuilder.FilterForAdjacency(episodes, adjacentTo.Value).ToList();
}