Browse Source

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!
master
Daniel 9 months ago
parent
commit
1df794ebf2
No known key found for this signature in database GPG Key ID: 1C7071A75BB72D64
  1. 2
      site-lisp/db-music.el

2
site-lisp/db-music.el

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

Loading…
Cancel
Save