From 9ea3f458863f1f1db1a2eb56d2a5799834a64ec9 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Sun, 7 Jun 2026 22:37:34 +0200 Subject: [PATCH] Make resume queries version-aware --- 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 340a54e13b..6b0f10e02a 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