Visual Studio forgot about these
This commit is contained in:
parent
fc400560e6
commit
964822cd94
@ -312,7 +312,7 @@
|
||||
|
||||
<div id="SkipButtonContainer" class="checkboxContainer checkboxContainer-withDescription">
|
||||
<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>
|
||||
</label>
|
||||
|
||||
@ -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");
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user