Got uploading functional and cargo fmt-ing

This commit is contained in:
kdeng00
2024-06-07 22:37:51 -04:00
parent 9c3d5d67c5
commit a4f38fd917
4 changed files with 99 additions and 7 deletions
+7 -1
View File
@@ -303,11 +303,17 @@ impl CommitManager {
let host = self.ica_action.retrieve_flag_value(&String::from("-h"));
up.set_api(&host);
println!("");
for song in &album.songs {
// Upload each song
// TODO: Add functions to Upload struct that uploads song
// with metadata and img
up.upload_song_with_metadata(&token, &song, &cover_art, &album);
println!("Sending song...");
let res = up.upload_song_with_metadata(&token, &song, &cover_art, &album);
let tken = Runtime::new().unwrap().block_on(res);
// let data = futures::executor::block_on(res);
println!("{:?}", tken);
}
Ok(())