From 0f4abc0997625fe4912883947210fbc9f2712396 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 23 Aug 2024 18:23:20 +0200 Subject: feat(select/display): Also show the video hash when color displaying it The hash can now be used on the commandline to access video information. --- src/update/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/update') diff --git a/src/update/mod.rs b/src/update/mod.rs index 0e47321..ce31c7b 100644 --- a/src/update/mod.rs +++ b/src/update/mod.rs @@ -47,6 +47,7 @@ pub async fn update( 2 => 20, // logging.INFO 3.. => 10, // logging.DEBUG }; + info!("Passing log_level {} to the update script", log_level); let mut urls: Vec = vec![]; for (name, sub) in subscriptions.0 { @@ -216,7 +217,7 @@ async fn process_subscription( url, }; - println!("{}", video.to_color_display()); + println!("{}", video.to_color_display(app).await?); add_video(app, video).await?; Ok(()) } -- cgit 1.4.1