tsk-68: Saving file_type from CoverArt (#70)
Closes #68 Reviewed-on: #70 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit was merged in pull request #70.
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -1322,7 +1322,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "songparser"
|
name = "songparser"
|
||||||
version = "0.4.11"
|
version = "0.4.12"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures",
|
"futures",
|
||||||
"icarus_envy",
|
"icarus_envy",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "songparser"
|
name = "songparser"
|
||||||
version = "0.4.11"
|
version = "0.4.12"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
rust-version = "1.90"
|
rust-version = "1.90"
|
||||||
|
|
||||||
|
|||||||
@@ -39,8 +39,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
println!("Token: {:?}", app.token);
|
|
||||||
|
|
||||||
if app.token.token_expired() {
|
if app.token.token_expired() {
|
||||||
println!("Token expired");
|
println!("Token expired");
|
||||||
app.token = match auth::get_refresh_token(&app).await {
|
app.token = match auth::get_refresh_token(&app).await {
|
||||||
|
|||||||
@@ -197,6 +197,10 @@ pub async fn process_coverart(
|
|||||||
"Saved coverart queue file at: {:?}",
|
"Saved coverart queue file at: {:?}",
|
||||||
queued_coverart.path
|
queued_coverart.path
|
||||||
);
|
);
|
||||||
|
println!(
|
||||||
|
"Queued CoverArt file type: {:?}",
|
||||||
|
queued_coverart.coverart.file_type
|
||||||
|
);
|
||||||
|
|
||||||
Ok(queued_coverart)
|
Ok(queued_coverart)
|
||||||
}
|
}
|
||||||
@@ -237,6 +241,7 @@ async fn init_queued_coverart(
|
|||||||
panic!("Error initializing queued CoverArt");
|
panic!("Error initializing queued CoverArt");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
file_type: String::from(file_type),
|
||||||
data: bytes,
|
data: bytes,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user