adding format options
This commit is contained in:
parent
988c751444
commit
3ef3a42dd8
|
@ -3,7 +3,8 @@ const DOMPurify = require('isomorphic-dompurify')
|
||||||
|
|
||||||
async function downloadVideo(url, ws) {
|
async function downloadVideo(url, ws) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const child = child_process.spawn("../yt-dlp", [url], {cwd: 'videos', shell: false})
|
const child = child_process.spawn("../yt-dlp", [url, ' -f 248+250/22/18/17'], {cwd: 'videos', shell: false})
|
||||||
|
// https://github.com/yt-dlp/yt-dlp/blob/cc8d8441524ec3442d7c0d3f8f33f15b66aa06f3/README.md?plain=1#L1500
|
||||||
|
|
||||||
child.stdout.on("data", data => {
|
child.stdout.on("data", data => {
|
||||||
const msg = data.toString().trim()
|
const msg = data.toString().trim()
|
||||||
|
|
Loading…
Reference in New Issue