Fix error: Requested format is not available. Use --list-formats for a list of available formats
This commit is contained in:
parent
a3c27eeda6
commit
1e7a31bff0
@ -114,9 +114,10 @@ class DownloadVideo {
|
|||||||
|
|
||||||
const result = await new Promise((resolve, reject) => {
|
const result = await new Promise((resolve, reject) => {
|
||||||
const child = spawn("yt-dlp", [
|
const child = spawn("yt-dlp", [
|
||||||
|
"--skip-download", "--dump-json", "--ignore-no-formats",
|
||||||
"--cookies", "cookies.txt",
|
"--cookies", "cookies.txt",
|
||||||
"--user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
|
"--user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
|
||||||
"-j", this.url
|
this.url
|
||||||
]);
|
]);
|
||||||
|
|
||||||
let data = "";
|
let data = "";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user