Update queued song status (#63)

* Added function call to update queued song status

* Added skeleton method

* Added more code to the method

* Got it working

* Code formatting
This commit was merged in pull request #63.
This commit is contained in:
KD
2025-08-28 18:41:46 -04:00
committed by GitHub
parent d67e320278
commit 07402d1b5e
2 changed files with 45 additions and 4 deletions
+13 -4
View File
@@ -458,10 +458,19 @@ impl CommitManager {
.link_queued_song_to_queued_coverart(token, &queued_song_id, &id)
.await
{
Ok(_) => {
println!("Queued coverart Id: {id:?}");
println!("Linked queued song to queued coverart");
}
Ok(_) => match up
.update_queued_song_status(token, &queued_song_id, "ready")
.await
{
Ok(_) => {
println!("Queued coverart Id: {id:?}");
println!("Linked queued song to queued coverart");
println!("Queued status updated");
}
Err(err) => {
return Err(std::io::Error::other(err.to_string()));
}
},
Err(err) => {
return Err(std::io::Error::other(err.to_string()));
}