fix: Ignore non files for songs
This commit is contained in:
parent
018eb21ecd
commit
758c8cbb01
1 changed files with 5 additions and 0 deletions
|
@ -139,6 +139,11 @@ fn process(args: &Args) -> Result<(), Errors> {
|
||||||
let song = f.as_ref().unwrap();
|
let song = f.as_ref().unwrap();
|
||||||
let song_path = song.path();
|
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_id[g] = total_songs_count as i32;
|
||||||
song_time_miliseconds[g] = match get_duration(song_path) {
|
song_time_miliseconds[g] = match get_duration(song_path) {
|
||||||
Ok(s) => s,
|
Ok(s) => s,
|
||||||
|
|
Loading…
Add table
Reference in a new issue