mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-14 23:57:27 -05:00
fix qobuz subscription check
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lucida",
|
"name": "lucida",
|
||||||
"version": "2.0.0-53",
|
"version": "2.0.0-54",
|
||||||
"description": "A modular music downloader tool",
|
"description": "A modular music downloader tool",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -57,6 +57,9 @@ interface LoginResponse {
|
|||||||
label: string
|
label: string
|
||||||
source: string
|
source: string
|
||||||
}
|
}
|
||||||
|
subscription: {
|
||||||
|
offer: string
|
||||||
|
}
|
||||||
}
|
}
|
||||||
user_auth_token: string
|
user_auth_token: string
|
||||||
}
|
}
|
||||||
@@ -331,7 +334,7 @@ export default class Qobuz implements StreamerWithLogin {
|
|||||||
valid: true,
|
valid: true,
|
||||||
premium:
|
premium:
|
||||||
loginResponse.user?.credential?.parameters?.hires_streaming ||
|
loginResponse.user?.credential?.parameters?.hires_streaming ||
|
||||||
loginResponse.user.credential.label.toLowerCase().includes('subscriber'),
|
loginResponse.user.subscription.offer == 'studio',
|
||||||
country: loginResponse.user.country,
|
country: loginResponse.user.country,
|
||||||
explicit: true
|
explicit: true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user