From 297b183bfafd53b72539fe57aaf88cb32acdb4d5 Mon Sep 17 00:00:00 2001 From: "william.xwl" Date: Thu, 22 Sep 2005 16:15:00 +0000 Subject: emms-playing-time: Since 'info-playing-time is an int now, changed `emms-playing-time-display' accordingly. darcs-hash:20050922161519-e8fe6-10afec9d862e9706358a9d7da3f9041c6d5a8236.gz --- emms-playing-time.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/emms-playing-time.el b/emms-playing-time.el index 2506e08..dc9fc12 100644 --- a/emms-playing-time.el +++ b/emms-playing-time.el @@ -102,10 +102,9 @@ e.g., display 02:37 instead of 02:37/05:49.") (let* ((min (/ emms-playing-time 60)) (sec (% emms-playing-time 60)) (total-playing-time - (or (string-to-int - (emms-track-get - (emms-playlist-current-selected-track) - 'info-playing-time)) + (or (emms-track-get + (emms-playlist-current-selected-track) + 'info-playing-time) 0)) (total-min-only (/ total-playing-time 60)) (total-sec-only (% total-playing-time 60))) -- cgit v1.2.3