tsk-54: Make Song file random when updating queued song (#65)
All checks were successful
Rust Build / Check (push) Successful in 35s
Rust Build / Test Suite (push) Successful in 39s
Rust Build / Rustfmt (push) Successful in 32s
Rust Build / Clippy (push) Successful in 43s
Rust Build / build (push) Successful in 49s

Closes #54

Reviewed-on: #65
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
2025-10-22 18:09:48 +00:00
committed by phoenix
parent bd351b1157
commit 113416432b
7 changed files with 340 additions and 332 deletions

View File

@@ -199,11 +199,10 @@ pub mod update_queued_song {
println!("Queued song path: {:?}", queued_song.path);
// TODO: Make the filename random
let form = reqwest::multipart::Form::new().part(
"file",
reqwest::multipart::Part::bytes(std::fs::read(&queued_song.path).unwrap())
.file_name("track01.flac"),
.file_name(queued_song.song.filename.clone()),
);
let url = format!("{}/api/v2/song/queue/{}", app.uri, queued_song.id);