@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user