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

View file

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