tsk-62: Fix
This commit is contained in:
11
src/main.rs
11
src/main.rs
@@ -332,10 +332,19 @@ async fn prep_song(
|
||||
};
|
||||
*/
|
||||
|
||||
let queued_song = queued_item::QueuedSong {
|
||||
let queued_song: crate::queued_item::QueuedSong = match song.save_to_filesystem() {
|
||||
Ok(_) => {
|
||||
queued_item::QueuedSong {
|
||||
id: *song_queue_id,
|
||||
song,
|
||||
path: songpath
|
||||
}
|
||||
|
||||
}
|
||||
Err(err) => {
|
||||
eprintln!("Error: {err:?}");
|
||||
queued_item::QueuedSong{..Default::default()}
|
||||
}
|
||||
};
|
||||
|
||||
println!("Saved at: {:?}", queued_song.path);
|
||||
|
Reference in New Issue
Block a user