This commit is contained in:
RemixDev 2021-09-30 17:30:28 +02:00
parent 5477d7d3c4
commit d0781041c5
4 changed files with 13 additions and 1 deletions

View file

@ -42,6 +42,9 @@ class API{
searchParams: args,
cookieJar: this.cookie_jar,
headers: this.http_headers,
https: {
rejectUnauthorized: false
},
timeout: 30000
}).json()
} catch (e) {

View file

@ -57,6 +57,9 @@ class GW{
json: args,
cookieJar: this.cookie_jar,
headers: this.http_headers,
https: {
rejectUnauthorized: false
},
timeout: 30000
}).json()
}catch (e){

View file

@ -45,6 +45,9 @@ class Deezer{
let login = await got.post("https://www.deezer.com/ajax/action.php", {
headers: this.http_headers,
cookieJar: this.cookie_jar,
https: {
rejectUnauthorized: false
},
form:{
type: 'login',
mail: email,
@ -156,6 +159,9 @@ class Deezer{
response = await got.post("https://media.deezer.com/v1/get_url", {
headers: this.http_headers,
cookieJar: this.cookie_jar,
https: {
rejectUnauthorized: false
},
json: {
license_token: this.current_user.license_token,
media: [{

View file

@ -1,6 +1,6 @@
{
"name": "deezer-js",
"version": "1.2.3",
"version": "1.2.4",
"description": "A wrapper for all Deezer's APIs",
"main": "deezer/index.js",
"scripts": {