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(); } }