Fix error: Requested format is not available. Use --list-formats for a list of available formats

This commit is contained in:
FullGreaM 2026-01-30 17:13:39 +03:00
parent a3c27eeda6
commit 1e7a31bff0

View File

@ -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 = "";