From afc461ef8513d1d5573cb5f71034203cb377cc1a Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Tue, 6 Jun 2006 14:44:00 +0000 Subject: emms-info: Fix bug that occurs after clearing the current playlist and trying to re-add songs to it. darcs-hash:20060606144439-1bfb2-34f362137ee2006e12ebfe26e7f3842c31f5ef0d.gz --- emms-info.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emms-info.el b/emms-info.el index ab48b45..c4533bd 100644 --- a/emms-info.el +++ b/emms-info.el @@ -122,8 +122,9 @@ Return t when the track got changed." (when (or (not cached-track) (and cached-track emms-info-auto-update - (emms-time-less-p - (emms-track-get track 'info-mtime) file-mtime))) + (let ((info-mtime (emms-track-get track 'info-mtime))) + (or (not (consp info-mtime)) + (emms-time-less-p info-mtime file-mtime))))) (setq updated t) (run-hook-with-args 'emms-info-functions track)) -- cgit v1.2.3