tsk-81: icaurs_models version bump

This commit is contained in:
kdeng00
2025-10-24 13:22:43 -04:00
parent e3fc08af63
commit a8b7c8c374
3 changed files with 5 additions and 11 deletions
+2 -8
View File
@@ -200,8 +200,7 @@ impl CommitManager {
match dwn_loader.download_song(&token, &song).await {
Ok(o) => {
println!("Success");
// let filename = String::from("audio")
// + icarus_models::constants::file_extensions::audio::DEFAULTMUSICEXTENSION;
song.data = o.as_bytes().to_vec();
song.directory = String::from(".");
song.filename = icarus_models::song::generate_filename(icarus_models::types::MusicTypes::FlacExtension, true);
@@ -210,14 +209,9 @@ impl CommitManager {
println!("Song saved");
}
Err(err) => {
eprintln!("Error: {err:?}");
eprintln!("Error saving song: {err:?}");
}
}
/*
let mut file = std::fs::File::create(filename).expect("Failed to save");
file.write_all(data)
.expect("Failed to save downloaded song");
*/
}
Err(er) => {
println!("Error {er:?}");