diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-23 18:23:20 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-24 11:45:09 +0200 |
commit | 0f4abc0997625fe4912883947210fbc9f2712396 (patch) | |
tree | 459d6747f58c10df4a3d19307306b0e0345a387e /src/update/mod.rs | |
parent | fix(select/cmds): Accept the watch flags for every command (diff) | |
download | yt-0f4abc0997625fe4912883947210fbc9f2712396.tar.gz yt-0f4abc0997625fe4912883947210fbc9f2712396.zip |
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.
Diffstat (limited to 'src/update/mod.rs')
-rw-r--r-- | src/update/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<String> = 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(()) } |