rename to av because its video with audio

This commit is contained in:
mykola2312 2024-02-20 16:09:11 +02:00
parent 9048693a15
commit b6f5dc234d
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ impl YtDlpInfo {
Ok(info) Ok(info)
} }
pub fn best_video_format(&self) -> Option<&YtDlpFormat> { pub fn best_av_format(&self) -> Option<&YtDlpFormat> {
let format = self let format = self
.formats .formats
.iter() .iter()

View file

@ -44,7 +44,7 @@ async fn main() -> anyhow::Result<()> {
} }
println!(""); println!("");
let video = info.best_video_format().unwrap(); let video = info.best_av_format().unwrap();
println!("{}", video); println!("{}", video);
Ok(()) Ok(())