diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-08-26 14:45:02 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-08-26 14:45:02 +0300 |
| commit | 4245b75115732b75e031e98d98f08d0078c87ab9 (patch) | |
| tree | 68ae8808853b598d574ba02926068d4a6845cfee | |
| parent | 57bd91fa87b76f73c9ece8cb69d6c16920571cb3 (diff) | |
Try to get audio working
| -rw-r--r-- | src/tasks.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tasks.ts b/src/tasks.ts index 2f18187..57a94d1 100644 --- a/src/tasks.ts +++ b/src/tasks.ts @@ -24,7 +24,7 @@ export const runDownloadUrlTask = async (task: Task) => { } const { stdout } = await asyncExec( - `yt-dlp -f mp4 -S vcodec:h264 --restrict-filenames -o "${filename}" -P downloads --cookies-from-browser chromium "${task.url}"`, + `yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]" -S vcodec:h264 --restrict-filenames -o "${filename}" -P downloads --cookies-from-browser chromium "${task.url}"`, ); console.log(stdout); task.respondWithFile(filename); |
