mirror of
https://gitlab.com/RemixDev/deezer-js.git
synced 2025-01-29 17:48:29 +00:00
v1.2.4
This commit is contained in:
parent
5477d7d3c4
commit
d0781041c5
|
@ -42,6 +42,9 @@ class API{
|
|||
searchParams: args,
|
||||
cookieJar: this.cookie_jar,
|
||||
headers: this.http_headers,
|
||||
https: {
|
||||
rejectUnauthorized: false
|
||||
},
|
||||
timeout: 30000
|
||||
}).json()
|
||||
} catch (e) {
|
||||
|
|
|
@ -57,6 +57,9 @@ class GW{
|
|||
json: args,
|
||||
cookieJar: this.cookie_jar,
|
||||
headers: this.http_headers,
|
||||
https: {
|
||||
rejectUnauthorized: false
|
||||
},
|
||||
timeout: 30000
|
||||
}).json()
|
||||
}catch (e){
|
||||
|
|
|
@ -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: [{
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue