From 667c1441a9dc14ec046fe77686db3391043d5252 Mon Sep 17 00:00:00 2001 From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> Date: Fri, 24 Jun 2022 17:02:40 -0500 Subject: [PATCH] Check intro validity before writing an EDL file --- ConfusedPolarBear.Plugin.IntroSkipper/EdlManager.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/EdlManager.cs b/ConfusedPolarBear.Plugin.IntroSkipper/EdlManager.cs index ac2386f..0620c78 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/EdlManager.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/EdlManager.cs @@ -68,6 +68,11 @@ public static class EdlManager _logger?.LogDebug("Episode {Id} did not have an introduction, skipping", id); continue; } + else if (!intro.Valid) + { + _logger?.LogDebug("Episode {Id} did not have a valid introduction, skipping", id); + continue; + } var edlPath = GetEdlPath(Plugin.Instance!.GetItemPath(id));