diff --git a/src/main.rs b/src/main.rs index 7c1e294..e9ff4ca 100644 --- a/src/main.rs +++ b/src/main.rs @@ -69,7 +69,7 @@ async fn is_queue_empty( async fn some_work( app_base_url: &String, song_queue_id: &uuid::Uuid, -) -> Result<(), std::io::Error> { +) -> Result<(icarus_models::song::Song, icarus_models::coverart::CoverArt, (uuid::Uuid, String), (uuid::Uuid, String)), std::io::Error> { match prep_song(app_base_url, song_queue_id).await { Ok((song_queue_path, coverart_queue_path, metadata, coverart_queue_id)) => { match apply_metadata(&song_queue_path, &coverart_queue_path, &metadata).await { @@ -116,7 +116,8 @@ async fn some_work( Ok(resp) => { println!("CoverArt sent and successfully parsed response"); println!("json: {resp:?}"); - Ok(()) + let coverart = &resp.data[0]; + Ok((song.clone(), coverart.clone(), (metadata.song_queue_id, song_queue_path), (coverart_queue_id, coverart_queue_path))) } Err(err) => { Err(std::io::Error::other(err.to_string()))