From 871216a19577f8c229b2ea3df806e9c82bb93bb9 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sun, 25 Jul 2021 20:05:33 +0200 Subject: [PATCH] Fixed login for family accounts v1.0.4 --- deezer/index.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deezer/index.js b/deezer/index.js index 0f32e86..7def319 100644 --- a/deezer/index.js +++ b/deezer/index.js @@ -107,9 +107,9 @@ class Deezer{ 'id': child.USER_ID, 'name': child.BLOG_NAME, 'picture': child.USER_PICTURE || "", - 'license_token': child.OPTIONS.license_token, - 'can_stream_hq': child.OPTIONS.web_hq || child.OPTIONS.mobile_hq, - 'can_stream_lossless': child.OPTIONS.web_lossless || child.OPTIONS.mobile_lossless + 'license_token': user_data.USER.OPTIONS.license_token, + 'can_stream_hq': user_data.USER.OPTIONS.web_hq || user_data.USER.OPTIONS.mobile_hq, + 'can_stream_lossless': user_data.USER.OPTIONS.web_lossless || user_data.USER.OPTIONS.mobile_lossless }) }) } else { diff --git a/package.json b/package.json index 627667d..d048151 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "deezer-js", - "version": "1.0.3", + "version": "1.0.4", "description": "A wrapper for all Deezer's APIs", "main": "deezer/index.js", "scripts": {