Fix download of video ids which start with -

This commit is contained in:
Sandro Jäckel 2020-09-26 13:20:25 +02:00
parent c787d2d094
commit 12a757a954
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ function downloadYoutube(id, response) {
let args = [
"-f", "bestaudio",
"-o", `${__dirname}/_youtube/%(title)s-%(id)s.%(ext)s`,
"--",
id
]
let child = require("child_process").spawn(cmd, args);