Skip to content

Commit

Permalink
Added missing season type 'alttwo'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kianda committed Dec 10, 2024
1 parent 9d0149e commit a3ac5d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Jellyfin.Plugin.Tvdb/Providers/TvdbExternalUrlProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Jellyfin.Plugin.Tvdb.Providers
/// </summary>
public class TvdbExternalUrlProvider : IExternalUrlProvider
{
private readonly FrozenSet<string> _supportedOrders = new[] { "official", "regional", "alternate", "altdvd", "dvd", "absolute" }.ToFrozenSet();
private readonly FrozenSet<string> _supportedOrders = new[] { "official", "regional", "alternate", "altdvd", "dvd", "absolute", "alttwo" }.ToFrozenSet();

/// <inheritdoc/>
public string Name => TvdbPlugin.ProviderName;
Expand Down
2 changes: 2 additions & 0 deletions Jellyfin.Plugin.Tvdb/TvdbClientManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ public async Task<IReadOnlyList<Country>> GetCountriesAsync(CancellationToken ca
case "alternate":
case "altdvd":
case "dvd":
case "alttwo":
episodeNumber = searchInfo.IndexNumber.Value;
seasonNumber = searchInfo.ParentIndexNumber.Value;
break;
Expand Down Expand Up @@ -656,6 +657,7 @@ public async Task<IReadOnlyList<Country>> GetCountriesAsync(CancellationToken ca
case "altdvd":
case "dvd":
case "absolute":
case "alttwo":
seriesResponse = await seriesClient.GetSeriesEpisodesAsync(page: 0, id: seriesTvdbId, season_type: searchInfo.SeriesDisplayOrder, season: seasonNumber, episodeNumber: episodeNumber, airDate: airDate, cancellationToken: cancellationToken).ConfigureAwait(false);
break;
default:
Expand Down

0 comments on commit a3ac5d1

Please sign in to comment.