From 1e7a31bff0ecdf908865f0ec3e41f3dd36366dc3 Mon Sep 17 00:00:00 2001 From: FullGreaM Date: Fri, 30 Jan 2026 17:13:39 +0300 Subject: [PATCH] Fix error: Requested format is not available. Use --list-formats for a list of available formats --- src/download.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/download.js b/src/download.js index e7c08bf..a701247 100644 --- a/src/download.js +++ b/src/download.js @@ -114,9 +114,10 @@ class DownloadVideo { const result = await new Promise((resolve, reject) => { const child = spawn("yt-dlp", [ + "--skip-download", "--dump-json", "--ignore-no-formats", "--cookies", "cookies.txt", "--user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64)", - "-j", this.url + this.url ]); let data = "";