From 4a3adffa58fd321e09ab3026e1d33b9d624dc689 Mon Sep 17 00:00:00 2001 From: Winterbird Date: Sun, 6 Aug 2023 10:26:19 +0200 Subject: [PATCH] Fix #91 - Support for Special episodes with Display order: Absolute --- Jellyfin.Plugin.Tvdb/TvdbClientManager.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.Tvdb/TvdbClientManager.cs b/Jellyfin.Plugin.Tvdb/TvdbClientManager.cs index f3b0370..4ae0cc6 100644 --- a/Jellyfin.Plugin.Tvdb/TvdbClientManager.cs +++ b/Jellyfin.Plugin.Tvdb/TvdbClientManager.cs @@ -287,7 +287,16 @@ public Task> GetEpisodesPageAsync( episodeQuery.DvdSeason = searchInfo.ParentIndexNumber.Value; break; case "absolute": - episodeQuery.AbsoluteNumber = searchInfo.IndexNumber.Value; + if (searchInfo.ParentIndexNumber.Value == 0) + { + episodeQuery.AiredEpisode = searchInfo.IndexNumber.Value; + episodeQuery.AiredSeason = searchInfo.ParentIndexNumber.Value; + } + else + { + episodeQuery.AbsoluteNumber = searchInfo.IndexNumber.Value; + } + break; default: // aired order