From b83fcdd3a1d5830a8f10d166fff51fec7274a363 Mon Sep 17 00:00:00 2001
From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com>
Date: Mon, 20 Jun 2022 01:39:56 -0500
Subject: [PATCH] Make overwriting existing EDL files optional
---
.../Configuration/PluginConfiguration.cs | 5 ++++
.../Configuration/configPage.html | 29 ++++++++++++++-----
.../EdlManager.cs | 7 +++++
3 files changed, 34 insertions(+), 7 deletions(-)
diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs
index 5242088..c712b3b 100644
--- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs
+++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs
@@ -31,6 +31,11 @@ public class PluginConfiguration : BasePluginConfiguration
///
public EdlAction EdlAction { get; set; } = EdlAction.None;
+ ///
+ /// Gets or sets a value indicating whether or not to overwrite existing EDL files.
+ ///
+ public bool OverwriteExistingEdlFiles { get; set; } = false;
+
// ===== Playback settings =====
///
diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
index d681ff6..540657a 100644
--- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
+++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
@@ -70,10 +70,20 @@
If set to a value other than None, specifies which action to write to
MPlayer compatible EDL files
alongside your episode files.
-
- If this value is changed from None, the plugin will overwrite any EDL files
- associated with your episode files.
-
+
+ If this value is changed after EDL files are generated, you must either manually delete
+ the EDL files or check the "Overwrite existing EDL files" checkbox below.
+
+
+
+
+
+
+
+ If checked, the plugin will overwrite any EDL files associated with your episode files.