From 9414fb51bd2175c979e39ff74d62312091a33953 Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:09:11 +0200 Subject: [PATCH] rename to av because its video with audio --- src/dl/yt_dlp.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(())