From 9e243bd6c4fdc71083203116d98af41ba00851ea Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Sat, 29 Jul 2006 02:25:00 +0000 Subject: emms-info: On second thought, with remote players, info should be fetched even when the file does not exist on the local system. So we should always fetch info when file-mtime is nil. darcs-hash:20060729022523-1bfb2-edf73ea0c2e77bcda00ad36157468befc712954b.gz --- emms-info.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/emms-info.el b/emms-info.el index 6976657..bb45cac 100644 --- a/emms-info.el +++ b/emms-info.el @@ -93,12 +93,13 @@ Return t when the track got changed." (name (emms-track-get track 'name))) ;; if the file's been modified or is new - (when (and file-mtime - (or (not info-mtime) - (emms-time-less-p info-mtime file-mtime))) + (when (or (not file-mtime) + (not info-mtime) + (emms-time-less-p info-mtime file-mtime)) (run-hook-with-args 'emms-info-functions track) ;; not set by info functions - (emms-track-set track 'info-mtime file-mtime) + (when file-mtime + (emms-track-set track 'info-mtime file-mtime)) (emms-track-updated track)) (when emms-info-asynchronously -- cgit v1.2.3