WrongLicense check for 360 RA files

This commit is contained in:
RemixDev 2021-12-23 19:15:03 +01:00
parent 86300cd97a
commit 5ca59d777c

View file

@ -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)