mirror of
https://gitlab.com/RemixDev/deezer-js.git
synced 2025-01-29 17:48:29 +00:00
WrongLicense check for 360 RA files
This commit is contained in:
parent
86300cd97a
commit
5ca59d777c
|
@ -145,7 +145,7 @@ class Deezer{
|
|||
if (!Array.isArray(track_tokens)) track_tokens = [track_tokens, ]
|
||||
if (!this.current_user.license_token) return []
|
||||
if (
|
||||
format === "FLAC" && !this.current_user.can_stream_lossless ||
|
||||
(format === "FLAC" || format.startsWith("MP4_RA")) && !this.current_user.can_stream_lossless ||
|
||||
format === "MP3_320" && !this.current_user.can_stream_hq
|
||||
) throw new WrongLicense(format)
|
||||
|
||||
|
|
Loading…
Reference in a new issue