diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html index e566501..5b5eb41 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html @@ -1023,7 +1023,7 @@ // show the ignore list editor. Dashboard.showLoadingMsg(); - const IgnoreList = await getJson("Intros/IgnoreList/" + encodeURI(selectShow.value)); + const IgnoreList = await getJson("Intros/IgnoreListSeries/" + encodeURI(selectShow.value)); ignorelistIntro.checked = IgnoreList.IgnoreIntro; ignorelistCredits.checked = IgnoreList.IgnoreCredits; ignorelistSection.style.display = "unset"; @@ -1041,11 +1041,10 @@ // season changed, reload all episodes async function seasonChanged() { const seasonData = encodeURI(selectShow.value) + "/" + encodeURI(selectSeason.value); - Dashboard.showLoadingMsg(); // show the ignore list editor. saveIgnoreListSeasonButton.style.display = "block"; - const IgnoreList = await getJson("Intros/IgnoreList/" + seasonData); + const IgnoreList = await getJson("Intros/IgnoreListSeason/" + encodeURI(selectSeason.value)); ignorelistIntro.checked = IgnoreList.IgnoreIntro; ignorelistCredits.checked = IgnoreList.IgnoreCredits; IgnoreListSeasonId = IgnoreList.SeasonId; diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/VisualizationController.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/VisualizationController.cs index e462236..f0dceed 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/VisualizationController.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/VisualizationController.cs @@ -76,11 +76,10 @@ public class VisualizationController(ILogger logger) : /// /// Returns the ignore list for the provided season. /// - /// Show ID. /// Season ID. /// List of episode titles. - [HttpGet("IgnoreList/{SeriesId}/{SeasonId}")] - public ActionResult GetIgnoreListSeason([FromRoute] Guid seriesId, [FromRoute] Guid seasonId) + [HttpGet("IgnoreListSeason/{SeasonId}")] + public ActionResult GetIgnoreListSeason([FromRoute] Guid seasonId) { if (!Plugin.Instance!.QueuedMediaItems.ContainsKey(seasonId)) { @@ -100,7 +99,7 @@ public class VisualizationController(ILogger logger) : /// /// Show ID. /// List of episode titles. - [HttpGet("IgnoreList/{SeriesId}")] + [HttpGet("IgnoreListSeries/{SeriesId}")] public ActionResult GetIgnoreListSeries([FromRoute] Guid seriesId) { var seasonIds = Plugin.Instance!.QueuedMediaItems