diff options
Diffstat (limited to 'emms-playing-time.el')
-rw-r--r-- | emms-playing-time.el | 7 |
1 files 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))) |