tsk-54: Make Song file random when updating queued song (#65)

Closes #54

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