diff --git a/src/dl/yt_dlp.rs b/src/dl/yt_dlp.rs index 007e48e..7375a36 100644 --- a/src/dl/yt_dlp.rs +++ b/src/dl/yt_dlp.rs @@ -82,7 +82,7 @@ impl YtDlpInfo { Ok(info) } - pub fn best_video_format(&self) -> Option<&YtDlpFormat> { + pub fn best_av_format(&self) -> Option<&YtDlpFormat> { let format = self .formats .iter() diff --git a/src/main.rs b/src/main.rs index ec60042..22869b2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,7 +44,7 @@ async fn main() -> anyhow::Result<()> { } println!(""); - let video = info.best_video_format().unwrap(); + let video = info.best_av_format().unwrap(); println!("{}", video); Ok(())