diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/SkipIntroController.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/SkipIntroController.cs index 8a307ba..60626b9 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/SkipIntroController.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/SkipIntroController.cs @@ -88,6 +88,13 @@ public class SkipIntroController : ControllerBase [ActionName("UpdateTimestamps")] public ActionResult GetTimestamps([FromRoute] Guid id) { + // only get return content for episodes + var rawItem = Plugin.Instance!.GetItem(id); + if (rawItem == null || rawItem is not Episode episode) + { + return NotFound(); + } + var times = new TimeStamps(); if (Plugin.Instance!.Intros.TryGetValue(id, out var introValue)) {