mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-09-07 10:06:08 +00:00
Changelog: changed
This commit is contained in:
parent
d6a23ac0de
commit
1507c70729
1 changed files with 9 additions and 3 deletions
|
@ -467,14 +467,20 @@ class AudioUrlWidevineSource extends AudioUrlSource {
|
|||
this.getLicenseRequestExecutor = () => {
|
||||
return {
|
||||
executeRequest: (url, _headers, _method, license_request_data) => {
|
||||
return http.POST(
|
||||
const response = http.POST(
|
||||
url,
|
||||
license_request_data,
|
||||
{ Authorization: `Bearer ${obj.bearerToken}` },
|
||||
false,
|
||||
true
|
||||
).body
|
||||
}
|
||||
);
|
||||
|
||||
if (!response.body) {
|
||||
throw new ScriptException("Unable to acquire license key");
|
||||
}
|
||||
|
||||
return response.body;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue