diff --git a/main.ts b/main.ts index c6802bd..1057cd4 100644 --- a/main.ts +++ b/main.ts @@ -297,7 +297,7 @@ function downloadSong(downloadLink: string, folder: string, filename: string): P return new Promise((resolve, reject) => { ensureDirectory(folder) https.get(downloadLink, (response) => { - response.pipe(fs.createWriteStream(`${folder}/${filename}.mp3`)) + response.pipe(fs.createWriteStream(`${folder}/${filename}`)) .on('finish', () => { resolve(); })