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