removed extra unnecessary .mp3 extensions
This commit is contained in:
2
main.ts
2
main.ts
@@ -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();
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user