fixed downloading user-uploaded tracks

This commit is contained in:
uh wot 2021-07-27 22:27:07 +02:00
parent 45bdf5740a
commit 659808dcec
No known key found for this signature in database
GPG key ID: CB2454984587B781

View file

@ -22,7 +22,7 @@ async function generateTrackItem(dz, id, bitrate, trackAPI, albumAPI){
throw new ISRCnotOnDeezer(`https://deezer.com/track/${id}`)
}
}
if (!(/^\d+$/.test(id))) throw new InvalidID(`https://deezer.com/track/${id}`)
if (!(/^-?\d+$/.test(id))) throw new InvalidID(`https://deezer.com/track/${id}`)
// Get essential track info
let trackAPI_gw