aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorforcer <forcer>2005-09-20 19:51:00 +0000
committerforcer <mwolson@gnu.org>2005-09-20 19:51:00 +0000
commit210dae37326f6e57d2038d746e785840614ee70f (patch)
treed36dc453abbbfcbce26af79fe08879fa5e8944cb
parent21ac80ab5f61689eaffff3316dfbbafe4ecde636 (diff)
Don't set values mp3info has nothing for
darcs-hash:20050920195119-2189f-fcfa87d4801c108a5e438c5606f1cda798c50296.gz
-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)