Merge pull request 'fixed downloading user-uploaded tracks' (#4) from uhwot/deemix-js:user-upped-trk-fix into main

Reviewed-on: https://git.freezer.life/RemixDev/deemix-js/pulls/4
This commit is contained in:
RemixDev 2021-07-27 16:29:35 -04:00
commit 54d3252c66

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