From d4d3902cf6d0ab52dc95a9273c2a72a9d0242d47 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Wed, 3 Jun 2026 16:56:38 +0200 Subject: [PATCH] Fix version-aware resume --- Jellyfin.Api/Controllers/TvShowsController.cs | 9 +++++- .../Item/BaseItemRepository.TranslateQuery.cs | 28 +++++++++++-------- .../Item/OrderMapper.cs | 5 +++- .../Entities/BaseItemTests.cs | 16 +++++++++++ 4 files changed, 45 insertions(+), 13 deletions(-) diff --git a/Jellyfin.Api/Controllers/TvShowsController.cs b/Jellyfin.Api/Controllers/TvShowsController.cs index e45a100b77..0d477ef95b 100644 --- a/Jellyfin.Api/Controllers/TvShowsController.cs +++ b/Jellyfin.Api/Controllers/TvShowsController.cs @@ -277,8 +277,15 @@ public class TvShowsController : BaseJellyfinApiController if (startItemId.HasValue) { + // The start item may be an alternate version, which is not part of the episode listing; start from its primary episode instead. + var startId = startItemId.Value; + if (_libraryManager.GetItemById