From 75352dd1c46eea89dd86c0763abc116076083e58 Mon Sep 17 00:00:00 2001
From: rlauu <46294892+rlauu@users.noreply.github.com>
Date: Sat, 12 Oct 2024 10:32:47 +0200
Subject: [PATCH] Remove the EDL option for the skip button since it's not
working
---
.../Configuration/configPage.html | 2 --
.../Data/EdlAction.cs | 22 +++++--------------
.../Manager/EdlManager.cs | 9 +-------
3 files changed, 7 insertions(+), 26 deletions(-)
diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
index c280d94..647c30f 100644
--- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
+++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
@@ -150,8 +150,6 @@
-
-
diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Data/EdlAction.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Data/EdlAction.cs
index 55bc1c1..165b703 100644
--- a/ConfusedPolarBear.Plugin.IntroSkipper/Data/EdlAction.cs
+++ b/ConfusedPolarBear.Plugin.IntroSkipper/Data/EdlAction.cs
@@ -11,32 +11,22 @@ public enum EdlAction
None = -1,
///
- /// Completely remove the intro from playback as if it was never in the original video.
+ /// Completely remove the segment from playback as if it was never in the original video.
///
- Cut,
+ Cut = 0,
///
/// Mute audio, continue playback.
///
- Mute,
+ Mute = 1,
///
/// Inserts a new scene marker.
///
- SceneMarker,
+ SceneMarker = 2,
///
- /// Automatically skip the intro once during playback.
+ /// Automatically skip once during playback.
///
- CommercialBreak,
-
- ///
- /// Show a skip button.
- ///
- Intro,
-
- ///
- /// Show a skip button.
- ///
- Credit,
+ CommercialBreak = 3
}
diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Manager/EdlManager.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Manager/EdlManager.cs
index c6edfc8..dd8fc4b 100644
--- a/ConfusedPolarBear.Plugin.IntroSkipper/Manager/EdlManager.cs
+++ b/ConfusedPolarBear.Plugin.IntroSkipper/Manager/EdlManager.cs
@@ -97,14 +97,7 @@ public static class EdlManager
edlContent += Environment.NewLine;
}
- if (action == EdlAction.Intro)
- {
- edlContent += credit?.ToEdl(EdlAction.Credit);
- }
- else
- {
- edlContent += credit?.ToEdl(action);
- }
+ edlContent += credit?.ToEdl(action);
}
File.WriteAllText(edlPath, edlContent);