Skip to content

Commit

Permalink
Fix jellyfin#91 - Support for Special episodes with Display order: Ab…
Browse files Browse the repository at this point in the history
…solute
  • Loading branch information
Winterbird committed Aug 6, 2023
1 parent 9d834e5 commit 4a3adff
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Jellyfin.Plugin.Tvdb/TvdbClientManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,16 @@ public Task<TvDbResponse<EpisodeRecord[]>> 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
Expand Down

0 comments on commit 4a3adff

Please sign in to comment.