From bb26ec683406084f85f88f9ff12318bce2a50d13 Mon Sep 17 00:00:00 2001 From: aria Date: Tue, 8 Oct 2024 19:06:11 -0400 Subject: [PATCH] add fallback to premium check for qobuz --- src/streamers/qobuz/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/streamers/qobuz/main.ts b/src/streamers/qobuz/main.ts index 0670567..77ad982 100644 --- a/src/streamers/qobuz/main.ts +++ b/src/streamers/qobuz/main.ts @@ -329,7 +329,9 @@ export default class Qobuz implements StreamerWithLogin { return { valid: true, - premium: loginResponse.user.credential.parameters.hires_streaming, + premium: + loginResponse.user?.credential?.parameters?.hires_streaming || + loginResponse.user.credential.label.toLowerCase().includes('subscriber'), country: loginResponse.user.country, explicit: true }