lxbx44 / time-tunes

Apache License 2.0
1 stars 0 forks source link

Title is Playlist::from_random() can't sample from empty range #7

Closed lxbx44 closed 8 months ago

lxbx44 commented 8 months ago

There is no check performed to make sure there are unused songs left here: https://github.com/lxbx44/time-tunes/blob/main/src-tauri/src/lib.rs#L72 causing the program to crash if the target duration is longer than all the songs in the provided directory combined