Implement cached duration fallback and simulate keyboard events fallback for Disney+ seeks when controls are hidden

This commit is contained in:
Timo
2026-07-02 13:27:53 +02:00
parent 71fa6e7315
commit bea0f6925c
2 changed files with 37 additions and 2 deletions
+1
View File
@@ -91,6 +91,7 @@ function makeNode(attrs = {}, textContent = '') {
function loadTimelineFns(hostname, document = makeDocument()) {
return Function('window', 'document', [
'let lastDisneyPlusTimelineCandidates = [];',
'let lastKnownDisneyPlusDuration = 0;',
extractFunction('hostMatchesUrl', source),
extractFunction('matchesPlayerUrls', source),
extractFunction('isDisneyPlusHost', source),