Fix download of video ids which start with -
This commit is contained in:
parent
c787d2d094
commit
12a757a954
1 changed files with 1 additions and 0 deletions
1
index.js
1
index.js
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue