aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2006-07-29 02:25:00 +0000
committerMichael Olson <mwolson@gnu.org>2006-07-29 02:25:00 +0000
commit9e243bd6c4fdc71083203116d98af41ba00851ea (patch)
tree36515e2d6603aca254c4448f646617d53a688a77
parentecc6f6e523cc478b960c3da2ca63252c178bd0e2 (diff)
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
-rw-r--r--emms-info.el9
1 files 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