RebuildMediaSegments

This commit is contained in:
rlauu 2024-11-17 21:59:54 +01:00
parent 7309be0422
commit f275e188da
3 changed files with 6 additions and 6 deletions

View File

@ -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.
/// </summary>
public bool RegenerateMediaSegments { get; set; } = true;
public bool RebuildMediaSegments { get; set; } = true;
// ===== Custom analysis settings =====

View File

@ -163,7 +163,7 @@
<div class="checkboxContainer checkboxContainer-withDescription">
<label class="emby-checkbox-label">
<input id="RegenerateMediaSegments" type="checkbox" is="emby-checkbox" />
<input id="RebuildMediaSegments" type="checkbox" is="emby-checkbox" />
<span>Regenerate All Media Segments on Next Run</span>
</label>
@ -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");

View File

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