diff options
author | tomsmeding <tom.smeding@gmail.com> | 2018-02-21 08:55:49 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2018-02-21 08:55:49 +0100 |
commit | 7cca693798b1f7d48c38416a8263470aeeacc6c7 (patch) | |
tree | b898e3b70bbcca0998c0cd2c465d88fb6fd6ab63 /modules | |
parent | 68328af342f437c62e64094475e17c669f6f11c5 (diff) |
ytdl: '--' arg separator fix, thanks Lieuwex
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); |