From 7cca693798b1f7d48c38416a8263470aeeacc6c7 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 21 Feb 2018 08:55:49 +0100 Subject: ytdl: '--' arg separator fix, thanks Lieuwex --- modules/ytdl/ytdl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ytdl/ytdl.js b/modules/ytdl/ytdl.js index 3bbea16..fdda7f4 100644 --- a/modules/ytdl/ytdl.js +++ b/modules/ytdl/ytdl.js @@ -16,7 +16,7 @@ module.exports=function(app,io,moddir){ }); app.get("/ytdl/:ytdl_id",function(req,res){ var link=req.params.ytdl_id; - var cp=child_process.execFile("/usr/bin/env",["youtube-dl","-gf","best",link],{},function(err,stdout,stderr){ + var cp=child_process.execFile("/usr/bin/env",["youtube-dl","-gf","best","--",link],{},function(err,stdout,stderr){ if(err){ //console.log(err); res.status(404); -- cgit v1.2.3-70-g09d2