From 033bf721512821de09e39e9efbab18565dbbe4ce Mon Sep 17 00:00:00 2001 From: TPD94 Date: Sun, 1 Jun 2025 12:56:58 -0400 Subject: [PATCH] Update inject.js Fix firstvalidlicense response. --- inject.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inject.js b/inject.js index e3f6c7f..4ed7ec2 100644 --- a/inject.js +++ b/inject.js @@ -690,8 +690,7 @@ MediaKeySession.prototype.update = function(response) { } // Handle License Data - if (!base64Response.startsWith("CAUS") && !firstValidLicenseResponse && (interceptType === 'EME' || interceptType === 'LICENSE')) { - firstValidLicenseResponse = true; + if (!base64Response.startsWith("CAUS") && (interceptType === 'EME' || interceptType === 'LICENSE')) { // 🔁 Call parseLicense, then getKeys from global remoteCDM if (remoteCDM !== null && remoteCDM.session_id) {