diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-08-26 15:14:36 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-08-26 15:14:36 +0300 |
| commit | 29a728b95eff5f44e1b7dd3d79413d1741faf85e (patch) | |
| tree | 2ff6c2b336627b601e24f790ee485ac749a789de | |
| parent | 2e77368f4227a05fdf54b2ec88233bbf5412fbe7 (diff) | |
Testing
| -rw-r--r-- | src/tasks.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tasks.ts b/src/tasks.ts index 5f3f672..cbbbbd1 100644 --- a/src/tasks.ts +++ b/src/tasks.ts @@ -24,7 +24,9 @@ export const runDownloadUrlTask = async (task: Task) => { } const { stdout } = await asyncExec( - `yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]" --restrict-filenames -o "${filename}" -P downloads --cookies-from-browser chromium "${task.url}"`, + `yt-dlp -f "bestvideo[ext=mp4][vcodec!*=vp9]+bestaudio/best[ext=mp4][vcodec!*=vp9]" \ + --merge-output-format mp4 \ + --restrict-filenames -o "${filename}" -P downloads --cookies-from-browser chromium "${task.url}"`, ); console.log(stdout); task.respondWithFile(filename); |
