fix: yt codec

This commit is contained in:
Kristofers Solo 2025-09-20 22:24:20 +03:00
parent 1cf495078e
commit 248fe97991
Signed by: kristoferssolo
GPG Key ID: 8687F2D3EEE6F0ED

View File

@ -49,7 +49,6 @@ async fn run_command_in_tempdir(cmd: &str, args: &[&str]) -> Result<DownloadResu
// collect files produced in tempdir (async)
let mut rd = read_dir(&cwd).await?;
dbg!(&rd);
let mut files = Vec::new();
while let Some(entry) = rd.next_entry().await? {
if entry.file_type().await?.is_file() {
@ -95,6 +94,8 @@ pub async fn download_ytdlp(url: &str, cookies: Option<&str>) -> Result<Download
"--no-playlist",
"--merge-output-format",
"mp4",
"-f",
"bestvideo[ext=mp4][vcodec^=avc1]+bestaudio/best",
"--restrict-filenames",
"-o",
"%(id)s.%(ext)s",