tsk-68: Saving file_type from CoverArt #70

Merged
phoenix merged 4 commits from tsk-68 into main 2025-10-30 20:25:39 +00:00
4 changed files with 7 additions and 4 deletions

2
Cargo.lock generated
View File

@@ -1322,7 +1322,7 @@ dependencies = [
[[package]]
name = "songparser"
version = "0.4.11"
version = "0.4.12"
dependencies = [
"futures",
"icarus_envy",

View File

@@ -1,6 +1,6 @@
[package]
name = "songparser"
version = "0.4.11"
version = "0.4.12"
edition = "2024"
rust-version = "1.90"

View File

@@ -39,8 +39,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
};
loop {
println!("Token: {:?}", app.token);
if app.token.token_expired() {
println!("Token expired");
app.token = match auth::get_refresh_token(&app).await {

View File

@@ -197,6 +197,10 @@ pub async fn process_coverart(
"Saved coverart queue file at: {:?}",
queued_coverart.path
);
println!(
"Queued CoverArt file type: {:?}",
queued_coverart.coverart.file_type
);
Ok(queued_coverart)
}
@@ -237,6 +241,7 @@ async fn init_queued_coverart(
panic!("Error initializing queued CoverArt");
}
},
file_type: String::from(file_type),
data: bytes,
..Default::default()
};