RebuildMediaSegments
This commit is contained in:
parent
7309be0422
commit
f275e188da
@ -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.
|
/// 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.
|
/// If this is set, all Media Segments will be regenerated and overwrite any existing Media Segemnts.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool RegenerateMediaSegments { get; set; } = true;
|
public bool RebuildMediaSegments { get; set; } = true;
|
||||||
|
|
||||||
// ===== Custom analysis settings =====
|
// ===== Custom analysis settings =====
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@
|
|||||||
|
|
||||||
<div class="checkboxContainer checkboxContainer-withDescription">
|
<div class="checkboxContainer checkboxContainer-withDescription">
|
||||||
<label class="emby-checkbox-label">
|
<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>
|
<span>Regenerate All Media Segments on Next Run</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
@ -673,7 +673,7 @@
|
|||||||
"AutoSkipCreditsNotificationText",
|
"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
|
// visualizer elements
|
||||||
var analyzerActionsSection = document.querySelector("div#analyzerActionsSection");
|
var analyzerActionsSection = document.querySelector("div#analyzerActionsSection");
|
||||||
|
@ -159,16 +159,16 @@ public class BaseItemAnalyzerTask
|
|||||||
throw;
|
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);
|
await _mediaSegmentUpdateManager.UpdateMediaSegmentsAsync(episodes, ct).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
}).ConfigureAwait(false);
|
}).ConfigureAwait(false);
|
||||||
|
|
||||||
if (Plugin.Instance.Configuration.RegenerateMediaSegments)
|
if (Plugin.Instance.Configuration.RebuildMediaSegments)
|
||||||
{
|
{
|
||||||
_logger.LogInformation("Turning Mediasegment");
|
_logger.LogInformation("Turning Mediasegment");
|
||||||
Plugin.Instance.Configuration.RegenerateMediaSegments = false;
|
Plugin.Instance.Configuration.RebuildMediaSegments = false;
|
||||||
Plugin.Instance.SaveConfiguration();
|
Plugin.Instance.SaveConfiguration();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user