From 659808dcec76313df28687e1ee8a0dd40449daa5 Mon Sep 17 00:00:00 2001 From: uh wot Date: Tue, 27 Jul 2021 22:27:07 +0200 Subject: [PATCH] fixed downloading user-uploaded tracks --- deemix/itemgen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deemix/itemgen.js b/deemix/itemgen.js index 7e6ae97..33697b8 100644 --- a/deemix/itemgen.js +++ b/deemix/itemgen.js @@ -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