update_walk: update existing playlist entry
Fixes duplicate playlist entries.
This commit is contained in:
parent
663815ead8
commit
d953225531
@ -604,7 +604,9 @@ update_regular_file(struct directory *directory,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
} else if (playlist_suffix_supported(suffix)) {
|
} else if (playlist_suffix_supported(suffix)) {
|
||||||
playlist_vector_add(&directory->playlists, name, st->st_mtime);
|
if (playlist_vector_update_or_add(&directory->playlists, name,
|
||||||
|
st->st_mtime))
|
||||||
|
modified = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user