diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-04-25 19:58:46 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-04-25 19:58:46 +0300 |
| commit | 4e397f4c096b59d0d8c597aa279e0f0448a174c3 (patch) | |
| tree | 0df346d990c14f8195d177f1bad0a860aa20e745 /src/tasks.ts | |
| parent | d77026c271b3d81ed29c0435c1cb24850389fe67 (diff) | |
Improve yt-dlp invocation
Diffstat (limited to 'src/tasks.ts')
| -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 0b220bb..c25fd80 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 --cookies-from-browser chromium -o "${filepath}" "${task.url}"`, + `yt-dlp -f mp4 --restrict-filenames -o "${filename}" -P downloads --cookies-from-browser chromium "${task.url}"`, ); console.log(stdout); task.respondWithFile(filename); |
