fix: Ignore non files for songs

This commit is contained in:
LoicBersier 2025-08-01 11:19:36 +02:00
parent 018eb21ecd
commit 758c8cbb01

View file

@ -139,6 +139,11 @@ fn process(args: &Args) -> Result<(), Errors> {
let song = f.as_ref().unwrap();
let song_path = song.path();
// Ignore non files for song groups
if !song_path.is_file() {
continue;
}
song_id[g] = total_songs_count as i32;
song_time_miliseconds[g] = match get_duration(song_path) {
Ok(s) => s,