From 758c8cbb01da5ffc89c510d497137f9e9747ed71 Mon Sep 17 00:00:00 2001 From: LoicBersier Date: Fri, 1 Aug 2025 11:19:36 +0200 Subject: [PATCH] fix: Ignore non files for songs --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index a4b653b..820d9c5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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,