better quality mp4
This commit is contained in:
parent
c6de493379
commit
cbf7dd0d83
2
wss.js
2
wss.js
@ -18,7 +18,7 @@ wss.on("connection", function(ws, req) {
|
||||
if (!ytid) { ws.send(color("red", "youtube url not valid")); ws.close(); return }
|
||||
|
||||
ws.send(color("green", "spawning yt-dlp..."));
|
||||
var cp = child_process.spawn("yt-dlp", ["--format=mp4[height=360]/mp4", "--max-filesize=1G", `--match-filter=duration<7200`, "--no-mtime", ytid], {cwd: "v", shell: false});
|
||||
var cp = child_process.spawn("yt-dlp", ["--format=mp4", "--max-filesize=1G", `--match-filter=duration<7200`, "--no-mtime", ytid], {cwd: "v", shell: false});
|
||||
|
||||
cp.on("error", error => {
|
||||
log(error.message, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user