mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-09-08 10:36:07 +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 = () => {
|
this.getLicenseRequestExecutor = () => {
|
||||||
return {
|
return {
|
||||||
executeRequest: (url, _headers, _method, license_request_data) => {
|
executeRequest: (url, _headers, _method, license_request_data) => {
|
||||||
return http.POST(
|
const response = http.POST(
|
||||||
url,
|
url,
|
||||||
license_request_data,
|
license_request_data,
|
||||||
{ Authorization: `Bearer ${obj.bearerToken}` },
|
{ Authorization: `Bearer ${obj.bearerToken}` },
|
||||||
false,
|
false,
|
||||||
true
|
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