mirror of
https://gitlab.com/RemixDev/deezer-js.git
synced 2025-01-29 17:48:29 +00:00
Merge branch 'independent-child-fix' into 'main'
don't show independent accounts in child dropdown See merge request RemixDev/deezer-js!3
This commit is contained in:
commit
5bf4cd58f0
|
@ -108,15 +108,17 @@ class Deezer{
|
|||
if (family){
|
||||
let childs = await this.gw.get_child_accounts()
|
||||
childs.forEach(child => {
|
||||
this.childs.push({
|
||||
'id': child.USER_ID,
|
||||
'name': child.BLOG_NAME,
|
||||
'picture': child.USER_PICTURE || "",
|
||||
'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,
|
||||
'country': user_data.COUNTRY
|
||||
})
|
||||
if (child.EXTRA_FAMILY.IS_LOGGABLE_AS) {
|
||||
this.childs.push({
|
||||
'id': child.USER_ID,
|
||||
'name': child.BLOG_NAME,
|
||||
'picture': child.USER_PICTURE || "",
|
||||
'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,
|
||||
'country': user_data.COUNTRY
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.childs.push({
|
||||
|
|
Loading…
Reference in a new issue