From a3ac5d14f4001a2633ec46a3a89ced7b44613a91 Mon Sep 17 00:00:00 2001 From: Kianda Date: Tue, 10 Dec 2024 19:39:29 +0100 Subject: [PATCH] Added missing season type 'alttwo' --- Jellyfin.Plugin.Tvdb/Providers/TvdbExternalUrlProvider.cs | 2 +- Jellyfin.Plugin.Tvdb/TvdbClientManager.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.Tvdb/Providers/TvdbExternalUrlProvider.cs b/Jellyfin.Plugin.Tvdb/Providers/TvdbExternalUrlProvider.cs index 406afa8..568c619 100644 --- a/Jellyfin.Plugin.Tvdb/Providers/TvdbExternalUrlProvider.cs +++ b/Jellyfin.Plugin.Tvdb/Providers/TvdbExternalUrlProvider.cs @@ -14,7 +14,7 @@ namespace Jellyfin.Plugin.Tvdb.Providers /// public class TvdbExternalUrlProvider : IExternalUrlProvider { - private readonly FrozenSet _supportedOrders = new[] { "official", "regional", "alternate", "altdvd", "dvd", "absolute" }.ToFrozenSet(); + private readonly FrozenSet _supportedOrders = new[] { "official", "regional", "alternate", "altdvd", "dvd", "absolute", "alttwo" }.ToFrozenSet(); /// public string Name => TvdbPlugin.ProviderName; diff --git a/Jellyfin.Plugin.Tvdb/TvdbClientManager.cs b/Jellyfin.Plugin.Tvdb/TvdbClientManager.cs index 85b1930..ab14471 100644 --- a/Jellyfin.Plugin.Tvdb/TvdbClientManager.cs +++ b/Jellyfin.Plugin.Tvdb/TvdbClientManager.cs @@ -609,6 +609,7 @@ public async Task> GetCountriesAsync(CancellationToken ca case "alternate": case "altdvd": case "dvd": + case "alttwo": episodeNumber = searchInfo.IndexNumber.Value; seasonNumber = searchInfo.ParentIndexNumber.Value; break; @@ -656,6 +657,7 @@ public async Task> 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: