From 12a757a954cf9d51e2dd81df883aae6f34de1f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 26 Sep 2020 13:20:25 +0200 Subject: [PATCH] Fix download of video ids which start with - --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 7fdbf84..1904c53 100644 --- a/index.js +++ b/index.js @@ -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);