mirror of
https://git.lucida.su/lucida/verdana.git
synced 2026-07-26 22:42:20 +00:00
fix qobuz subscription check
This commit is contained in:
parent
02e5bb90c9
commit
1f8985bcc8
2 changed files with 5 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "lucida",
|
||||
"version": "2.0.0-53",
|
||||
"version": "2.0.0-54",
|
||||
"description": "A modular music downloader tool",
|
||||
"main": "build/index.js",
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -57,6 +57,9 @@ interface LoginResponse {
|
|||
label: string
|
||||
source: string
|
||||
}
|
||||
subscription: {
|
||||
offer: string
|
||||
}
|
||||
}
|
||||
user_auth_token: string
|
||||
}
|
||||
|
|
@ -331,7 +334,7 @@ export default class Qobuz implements StreamerWithLogin {
|
|||
valid: true,
|
||||
premium:
|
||||
loginResponse.user?.credential?.parameters?.hires_streaming ||
|
||||
loginResponse.user.credential.label.toLowerCase().includes('subscriber'),
|
||||
loginResponse.user.subscription.offer == 'studio',
|
||||
country: loginResponse.user.country,
|
||||
explicit: true
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue