diff --git a/src/inject.js b/src/inject.js index a759d62..d500576 100644 --- a/src/inject.js +++ b/src/inject.js @@ -291,7 +291,7 @@ class RemoteCDMBase { xhr.setRequestHeader("Content-Type", "application/json"); xhr.send(JSON.stringify(body)); const jsonData = JSON.parse(xhr.responseText); - if (jsonData.status === 200 || jsonData.message?.includes("parsed and loaded")) { + if (xhr.status === 200 || jsonData.status === "Success" || jsonData.message?.includes("parsed and loaded")) { logWithPrefix("License response parsed successfully"); return true; } else { @@ -390,7 +390,7 @@ class remoteWidevineCDM extends RemoteCDMBase { }; xhr.send(JSON.stringify(body)); const jsonData = JSON.parse(xhr.responseText); - if (jsonData.status === 200) { + if (xhr.status === 200 || jsonData.status === "Success") { logWithPrefix("Service certificate set successfully"); } else { console.error("Failed to set service certificate:", jsonData.message);