Temporarily comment out zoom from player overlay

This commit is contained in:
Tamius Han 2025-01-13 01:33:58 +01:00
parent dd47dd09da
commit ebdc26a00d

View File

@ -560,6 +560,8 @@ class PlayerData {
const playerQs = this.siteSettings.getCustomDOMQuerySelector('player');
const playerIndex = this.siteSettings.getPlayerIndex();
console.log('player index:', playerIndex, 'player qs:', playerQs)
// on verbose, get both qs and index player
if (options?.verbose) {
if (playerIndex) {
@ -590,6 +592,8 @@ class PlayerData {
}
}
console.log('got player candidate from manual selection?:', playerCandidate);
if (playerCandidate) {
if (options?.verbose) {
this.getPlayerAuto(elementStack, videoWidth, videoHeight);
@ -713,8 +717,10 @@ class PlayerData {
}
}
if (bestCandidate.initialValue) {
console.log('No candidates found:', bestCandidate, 'element stack:', elementStack);
bestCandidate = null;
} else {
console.log('Got auto-matched candidate', bestCandidate);
bestCandidate.heuristics['autoMatch'] = true;
if (this.siteSettings.data.playerAutoConfig?.initialIndex !== bestCandidate.index) {
this.siteSettings.set('playerAutoConfig.initialIndex', bestCandidate.index, {reload: false});