Revert "Temporarily comment out zoom from player overlay"

This reverts commit ebdc26a00d.
This commit is contained in:
Tamius Han 2025-01-13 01:42:58 +01:00
parent 3dd8584954
commit eaf619f4f8

View File

@ -560,8 +560,6 @@ 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) {
@ -592,8 +590,6 @@ class PlayerData {
}
}
console.log('got player candidate from manual selection?:', playerCandidate);
if (playerCandidate) {
if (options?.verbose) {
this.getPlayerAuto(elementStack, videoWidth, videoHeight);
@ -717,10 +713,8 @@ 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});