Skip to content

Commit

Permalink
Fixed missing season number for absolute in GetEpisodeTvdbId
Browse files Browse the repository at this point in the history
  • Loading branch information
scampower3 committed Aug 11, 2023
1 parent 8e7aa3e commit 8efb0d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jellyfin.Plugin.Tvdb/TvdbClientManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ public async Task<TvDbApiResponse<ArtworkTypeDto[]>> GetArtworkTypeAsync(Cancell
episodeQuery.Season = searchInfo.ParentIndexNumber.Value;
break;
case "absolute":
episodeQuery.Season = 1; // absolute order is always season 1
episodeQuery.EpisodeNumber = searchInfo.IndexNumber.Value;
break;
default:
Expand All @@ -374,7 +375,6 @@ public async Task<TvDbApiResponse<ArtworkTypeDto[]>> GetArtworkTypeAsync(Cancell
apiResponse = await tvDbClient.SeriesEpisodes(Convert.ToInt32(seriesTvdbId, CultureInfo.InvariantCulture), searchInfo.SeriesDisplayOrder, episodeQuery, cancellationToken).ConfigureAwait(false);
break;
default:

apiResponse = await tvDbClient.SeriesEpisodes(Convert.ToInt32(seriesTvdbId, CultureInfo.InvariantCulture), "default", episodeQuery, cancellationToken).ConfigureAwait(false);
break;
}
Expand Down

0 comments on commit 8efb0d6

Please sign in to comment.