Download song #65

Merged
kdeng00 merged 5 commits from download_song into icarus_v2_support 2025-08-30 11:52:05 -04:00
Showing only changes of commit afc36e4f8f - Show all commits
+2 -4
View File
@@ -35,12 +35,10 @@ impl Download {
.await
{
Ok(rep) => match rep.status() {
reqwest::StatusCode::OK => {
match rep.text().await {
reqwest::StatusCode::OK => match rep.text().await {
Ok(e) => Ok(e),
Err(er) => Err(MyError::Other(er.to_string())),
}
}
},
reqwest::StatusCode::UNAUTHORIZED => {
Err(MyError::Other(String::from("Need to grab a new token")))
}