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!
This commit is contained in:
parent
015d218431
commit
1df794ebf2
|
@ -193,7 +193,7 @@ OVERWRITE is non-nil."
|
||||||
(with-current-buffer emms-temp-playlist-buffer
|
(with-current-buffer emms-temp-playlist-buffer
|
||||||
(let ((emms-playlist-buffer (current-buffer)))
|
(let ((emms-playlist-buffer (current-buffer)))
|
||||||
(emms-playlist-clear)
|
(emms-playlist-clear)
|
||||||
(dolist (track (split-string output "[\n\r]+"))
|
(dolist (track (split-string output "[\n\r]" 'omit-nulls))
|
||||||
(emms-insert-file track))
|
(emms-insert-file track))
|
||||||
(emms-playlist-sort-by-info-title)
|
(emms-playlist-sort-by-info-title)
|
||||||
(emms-playlist-sort-by-info-artist)
|
(emms-playlist-sort-by-info-artist)
|
||||||
|
|
Loading…
Reference in New Issue