mirror of
https://github.com/kristoferssolo/tg-relay-rs.git
synced 2025-12-20 11:04:41 +00:00
fix: yt codec
This commit is contained in:
parent
1cf495078e
commit
248fe97991
@ -49,7 +49,6 @@ async fn run_command_in_tempdir(cmd: &str, args: &[&str]) -> Result<DownloadResu
|
|||||||
|
|
||||||
// collect files produced in tempdir (async)
|
// collect files produced in tempdir (async)
|
||||||
let mut rd = read_dir(&cwd).await?;
|
let mut rd = read_dir(&cwd).await?;
|
||||||
dbg!(&rd);
|
|
||||||
let mut files = Vec::new();
|
let mut files = Vec::new();
|
||||||
while let Some(entry) = rd.next_entry().await? {
|
while let Some(entry) = rd.next_entry().await? {
|
||||||
if entry.file_type().await?.is_file() {
|
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",
|
"--no-playlist",
|
||||||
"--merge-output-format",
|
"--merge-output-format",
|
||||||
"mp4",
|
"mp4",
|
||||||
|
"-f",
|
||||||
|
"bestvideo[ext=mp4][vcodec^=avc1]+bestaudio/best",
|
||||||
"--restrict-filenames",
|
"--restrict-filenames",
|
||||||
"-o",
|
"-o",
|
||||||
"%(id)s.%(ext)s",
|
"%(id)s.%(ext)s",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user