get import response message

This commit is contained in:
jb-alvarado 2024-04-15 21:19:12 +02:00
parent b1881807a8
commit 19494657bb

View File

@ -1096,12 +1096,14 @@ async fn import_playlist(
upload(&pool.into_inner(), *id, size, payload, &path, true).await?;
task::spawn_blocking(move || import_file(&config, &obj.date, Some(channel.name), &path_clone))
.await??;
let response = task::spawn_blocking(move || {
import_file(&config, &obj.date, Some(channel.name), &path_clone)
})
.await??;
fs::remove_file(path).await?;
Ok(HttpResponse::Ok().into())
Ok(HttpResponse::Ok().body(response).into())
}
/// **Program info**