Omit null strings when updating playlists

Inserting a null string results in all files in the current buffer to be added
to that playlist.  Finding this bug was tricky!
Daniel Borchmann 2021-02-24 13:58:10 +01:00
parent 015d218431
commit 1df794ebf2
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ OVERWRITE is non-nil."
(with-current-buffer emms-temp-playlist-buffer
(let ((emms-playlist-buffer (current-buffer)))
(dolist (track (split-string output "[\n\r]+"))
(dolist (track (split-string output "[\n\r]" 'omit-nulls))
(emms-insert-file track))