diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html index 95ba6a9..e566501 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html @@ -1032,7 +1032,7 @@ // add all seasons from this show to the season select for (const season in shows[selectShow.value].Seasons) { - addItem(selectSeason, shows[selectShow.value].Seasons[season], season); + addItem(selectSeason, "Season " + shows[selectShow.value].Seasons[season], season); } selectSeason.value = ""; diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/VisualizationController.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/VisualizationController.cs index e5658d4..e462236 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/VisualizationController.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/VisualizationController.cs @@ -44,14 +44,14 @@ public class VisualizationController(ILogger logger) : var seriesId = first.SeriesId; var seasonId = kvp.Key; - var seasonName = GetSeasonName(first); + var seasonNumber = first.SeasonNumber; if (!showSeasons.TryGetValue(seriesId, out var showInfo)) { showInfo = new ShowInfos { SeriesName = first.SeriesName, ProductionYear = GetProductionYear(seriesId), LibraryName = GetLibraryName(seriesId), Seasons = [] }; showSeasons[seriesId] = showInfo; } - showInfo.Seasons[seasonId] = seasonName; + showInfo.Seasons[seasonId] = seasonNumber; } } @@ -288,11 +288,6 @@ public class VisualizationController(ILogger logger) : return NoContent(); } - private static string GetSeasonName(QueuedEpisode episode) - { - return "Season " + episode.SeasonNumber.ToString(CultureInfo.InvariantCulture); - } - private static string GetProductionYear(Guid seriesId) { return seriesId == Guid.Empty diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Data/ShowInfos.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Data/ShowInfos.cs index 60e9ebf..99b0fa3 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Data/ShowInfos.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Data/ShowInfos.cs @@ -26,6 +26,6 @@ namespace ConfusedPolarBear.Plugin.IntroSkipper.Controllers /// /// Gets the Seasons of the show. /// - public required Dictionary Seasons { get; init; } + public required Dictionary Seasons { get; init; } } }