Compare commits

...

2 Commits

2 changed files with 2 additions and 8 deletions

View File

@ -77,7 +77,7 @@
</GhettoContextMenuOption> </GhettoContextMenuOption>
</slot> </slot>
</GhettoContextMenu> </GhettoContextMenu>
<GhettoContextMenu alignment="right"> <!-- <GhettoContextMenu alignment="right">
<template v-slot:activator> <template v-slot:activator>
Zoom Zoom
</template> </template>
@ -99,7 +99,7 @@
/> />
</GhettoContextMenuItem> </GhettoContextMenuItem>
</slot> </slot>
</GhettoContextMenu> </GhettoContextMenu> -->
<GhettoContextMenu alignment="right"> <GhettoContextMenu alignment="right">
<template v-slot:activator> <template v-slot:activator>
<div class="context-item"> <div class="context-item">

View File

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