aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emms-info-mp3info.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/emms-info-mp3info.el b/emms-info-mp3info.el
index 0b5d608..07f371b 100644
--- a/emms-info-mp3info.el
+++ b/emms-info-mp3info.el
@@ -75,9 +75,11 @@ This is a useful element for `emms-info-functions'."
emms-info-mp3find-arguments))
(goto-char (point-min))
(while (looking-at "^\\([^=]+\\)=\\(.*\\)$")
- (emms-track-set track
- (intern (match-string 1))
- (match-string 2))
+ (let ((name (intern (match-string 1)))
+ (value (match-string 2)))
+ (when (> (length value)
+ 0)
+ (emms-track-set track name value)))
(forward-line 1))))))
(provide 'emms-info-mp3info)