removed extra unnecessary .mp3 extensions

This commit is contained in:
2025-10-22 13:48:13 +02:00
parent 8490b2d16c
commit 4e0748302e

View File

@@ -297,7 +297,7 @@ function downloadSong(downloadLink: string, folder: string, filename: string): P
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
ensureDirectory(folder) ensureDirectory(folder)
https.get(downloadLink, (response) => { https.get(downloadLink, (response) => {
response.pipe(fs.createWriteStream(`${folder}/${filename}.mp3`)) response.pipe(fs.createWriteStream(`${folder}/${filename}`))
.on('finish', () => { .on('finish', () => {
resolve(); resolve();
}) })