diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ytdl/ytdl.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); |