Visual Studio forgot about these

This commit is contained in:
TwistedUmbrellaX 2024-10-27 05:23:12 -04:00
parent fc400560e6
commit 964822cd94
2 changed files with 5 additions and 5 deletions

View File

@ -312,7 +312,7 @@
<div id="SkipButtonContainer" class="checkboxContainer checkboxContainer-withDescription"> <div id="SkipButtonContainer" class="checkboxContainer checkboxContainer-withDescription">
<label class="emby-checkbox-label"> <label class="emby-checkbox-label">
<input id="SkipButtonVisible" type="checkbox" is="emby-checkbox" /> <input id="SkipButtonEnabled" type="checkbox" is="emby-checkbox" />
<span id="SkipButtonVisibleLabel">Show skip intro / credit button</span> <span id="SkipButtonVisibleLabel">Show skip intro / credit button</span>
</label> </label>
@ -668,7 +668,7 @@
"AutoSkipCreditsNotificationText", "AutoSkipCreditsNotificationText",
]; ];
var booleanConfigurationFields = ["AutoDetectIntros", "AutoDetectCredits", "AnalyzeMovies", "AnalyzeSeasonZero", "SelectAllLibraries", "UpdateMediaSegments", "RegenerateMediaSegments", "CacheFingerprints", "AutoSkip", "AutoSkipCredits", "SkipFirstEpisode", "PersistSkipButton", "SkipButtonVisible"]; var booleanConfigurationFields = ["AutoDetectIntros", "AutoDetectCredits", "AnalyzeMovies", "AnalyzeSeasonZero", "SelectAllLibraries", "UpdateMediaSegments", "RegenerateMediaSegments", "CacheFingerprints", "AutoSkip", "AutoSkipCredits", "SkipFirstEpisode", "PersistSkipButton", "SkipButtonEnabled"];
// visualizer elements // visualizer elements
var ignorelistSection = document.querySelector("div#ignorelistSection"); var ignorelistSection = document.querySelector("div#ignorelistSection");
@ -700,7 +700,7 @@
var analyzeMovies = document.getElementById("AnalyzeMovies"); var analyzeMovies = document.getElementById("AnalyzeMovies");
var autoSkip = document.querySelector("input#AutoSkip"); var autoSkip = document.querySelector("input#AutoSkip");
var skipButtonVisible = document.getElementById("SkipButtonVisible"); var skipButtonVisible = document.getElementById("SkipButtonEnabled");
var skipButtonVisibleLabel = document.getElementById("SkipButtonVisibleLabel"); var skipButtonVisibleLabel = document.getElementById("SkipButtonVisibleLabel");
var skipButtonSettings = document.getElementById("SkipButtonSettings"); var skipButtonSettings = document.getElementById("SkipButtonSettings");
var selectAllLibraries = document.querySelector("input#SelectAllLibraries"); var selectAllLibraries = document.querySelector("input#SelectAllLibraries");

View File

@ -195,7 +195,7 @@ const introSkipper = {
return; return;
} }
const config = await this.secureFetch("Intros/UserInterfaceConfiguration"); const config = await this.secureFetch("Intros/UserInterfaceConfiguration");
if (!config.SkipButtonVisible) { if (!config.SkipButtonEnabled) {
this.d("Not adding button: not visible"); this.d("Not adding button: not visible");
return; return;
} }
@ -387,7 +387,7 @@ const introSkipper = {
const isAutoSkipClient = new Set(config.ClientList.split(",")).has( const isAutoSkipClient = new Set(config.ClientList.split(",")).has(
ApiClient.appName(), ApiClient.appName(),
); );
return isAutoSkip || (config.SkipButtonVisible && isAutoSkipClient); return isAutoSkip || (config.SkipButtonEnabled && isAutoSkipClient);
}, },
async injectIntroSkipperOptions(actionSheet) { async injectIntroSkipperOptions(actionSheet) {
if (!this.skipButton) return; if (!this.skipButton) return;