From f275e188da523ada9322832fe3fb5ce70181a62d Mon Sep 17 00:00:00 2001
From: rlauu <46294892+rlauu@users.noreply.github.com>
Date: Sun, 17 Nov 2024 21:59:54 +0100
Subject: [PATCH] RebuildMediaSegments
---
IntroSkipper/Configuration/PluginConfiguration.cs | 2 +-
IntroSkipper/Configuration/configPage.html | 4 ++--
IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/IntroSkipper/Configuration/PluginConfiguration.cs b/IntroSkipper/Configuration/PluginConfiguration.cs
index e3a4c72..e2cbda7 100644
--- a/IntroSkipper/Configuration/PluginConfiguration.cs
+++ b/IntroSkipper/Configuration/PluginConfiguration.cs
@@ -83,7 +83,7 @@ public class PluginConfiguration : BasePluginConfiguration
/// By default, Media Segments are only written for a season if the season had at least one newly analyzed episode.
/// If this is set, all Media Segments will be regenerated and overwrite any existing Media Segemnts.
///
- public bool RegenerateMediaSegments { get; set; } = true;
+ public bool RebuildMediaSegments { get; set; } = true;
// ===== Custom analysis settings =====
diff --git a/IntroSkipper/Configuration/configPage.html b/IntroSkipper/Configuration/configPage.html
index b8d0b6c..d40b2c7 100644
--- a/IntroSkipper/Configuration/configPage.html
+++ b/IntroSkipper/Configuration/configPage.html
@@ -163,7 +163,7 @@
@@ -673,7 +673,7 @@
"AutoSkipCreditsNotificationText",
];
- var booleanConfigurationFields = ["AutoDetectIntros", "AutoDetectCredits", "AnalyzeMovies", "AnalyzeSeasonZero", "SelectAllLibraries", "UpdateMediaSegments", "RegenerateMediaSegments", "CacheFingerprints", "AutoSkip", "AutoSkipCredits", "SkipFirstEpisode", "PersistSkipButton", "SkipButtonEnabled"];
+ var booleanConfigurationFields = ["AutoDetectIntros", "AutoDetectCredits", "AnalyzeMovies", "AnalyzeSeasonZero", "SelectAllLibraries", "UpdateMediaSegments", "RebuildMediaSegments", "CacheFingerprints", "AutoSkip", "AutoSkipCredits", "SkipFirstEpisode", "PersistSkipButton", "SkipButtonEnabled"];
// visualizer elements
var analyzerActionsSection = document.querySelector("div#analyzerActionsSection");
diff --git a/IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs b/IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs
index 1998a15..fca8335 100644
--- a/IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs
+++ b/IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs
@@ -159,16 +159,16 @@ public class BaseItemAnalyzerTask
throw;
}
- if (Plugin.Instance.Configuration.RegenerateMediaSegments || (updateManagers && Plugin.Instance.Configuration.UpdateMediaSegments))
+ if (Plugin.Instance.Configuration.RebuildMediaSegments || (updateManagers && Plugin.Instance.Configuration.UpdateMediaSegments))
{
await _mediaSegmentUpdateManager.UpdateMediaSegmentsAsync(episodes, ct).ConfigureAwait(false);
}
}).ConfigureAwait(false);
- if (Plugin.Instance.Configuration.RegenerateMediaSegments)
+ if (Plugin.Instance.Configuration.RebuildMediaSegments)
{
_logger.LogInformation("Turning Mediasegment");
- Plugin.Instance.Configuration.RegenerateMediaSegments = false;
+ Plugin.Instance.Configuration.RebuildMediaSegments = false;
Plugin.Instance.SaveConfiguration();
}
}