Got it working
pr CI / Test Suite (pull_request) Successful in 7m27s

This commit is contained in:
2026-08-15 11:52:23 -04:00
parent 13015e0fe3
commit 9195238f9d
2 changed files with 51 additions and 1 deletions
+4 -1
View File
@@ -232,8 +232,11 @@ pub mod endpoint {
axum::Extension(pool): axum::Extension<sqlx::PgPool>,
axum::extract::Path(id): axum::extract::Path<uuid::Uuid>,
) -> (axum::http::StatusCode, axum::response::Response) {
let lab_config = crate::util::maze::get_config();
let lr = labyrinth::Labyrinth { config: lab_config };
match repo::coverart::get_coverart(&pool, &id).await {
Ok(coverart) => match simodels::coverart::io::to_data(&coverart) {
Ok(coverart) => match lr.download(&coverart.file_key).await {
Ok(data) => {
let (file_type, img_type) =
match simeta::detection::coverart::file_type_from_data(&data) {