diff --git a/src/main.rs b/src/main.rs index 52f4142..3a809fc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -51,9 +51,13 @@ fn random() -> Template { Err(_) => panic!(""), }; + println!("getting tune information..."); + let file_name = chosen_one.file_name().unwrap().to_str().unwrap(); let file_title = chosen_one.file_stem().unwrap().to_str().unwrap(); + println!("building context..."); + let context = RandomContext { title: String::from(format!("♪ {}", file_title)), music_file: String::from(file_name),