diff --git a/IntroSkipper/Configuration/configPage.html b/IntroSkipper/Configuration/configPage.html index 43f456d..d08205f 100644 --- a/IntroSkipper/Configuration/configPage.html +++ b/IntroSkipper/Configuration/configPage.html @@ -312,7 +312,7 @@
@@ -668,7 +668,7 @@ "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 var ignorelistSection = document.querySelector("div#ignorelistSection"); @@ -700,7 +700,7 @@ var analyzeMovies = document.getElementById("AnalyzeMovies"); var autoSkip = document.querySelector("input#AutoSkip"); - var skipButtonVisible = document.getElementById("SkipButtonVisible"); + var skipButtonVisible = document.getElementById("SkipButtonEnabled"); var skipButtonVisibleLabel = document.getElementById("SkipButtonVisibleLabel"); var skipButtonSettings = document.getElementById("SkipButtonSettings"); var selectAllLibraries = document.querySelector("input#SelectAllLibraries"); diff --git a/IntroSkipper/Configuration/inject.js b/IntroSkipper/Configuration/inject.js index d59f110..292e02f 100644 --- a/IntroSkipper/Configuration/inject.js +++ b/IntroSkipper/Configuration/inject.js @@ -195,7 +195,7 @@ const introSkipper = { return; } const config = await this.secureFetch("Intros/UserInterfaceConfiguration"); - if (!config.SkipButtonVisible) { + if (!config.SkipButtonEnabled) { this.d("Not adding button: not visible"); return; } @@ -387,7 +387,7 @@ const introSkipper = { const isAutoSkipClient = new Set(config.ClientList.split(",")).has( ApiClient.appName(), ); - return isAutoSkip || (config.SkipButtonVisible && isAutoSkipClient); + return isAutoSkip || (config.SkipButtonEnabled && isAutoSkipClient); }, async injectIntroSkipperOptions(actionSheet) { if (!this.skipButton) return;