aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emms-lastfm.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/emms-lastfm.el b/emms-lastfm.el
index 63e7497..4fb851a 100644
--- a/emms-lastfm.el
+++ b/emms-lastfm.el
@@ -203,8 +203,9 @@ These will be displayed on the user's last.fm page."
'info-tracknumber))
(musicbrainz-id "")
(track-length (number-to-string
- (emms-track-get emms-lastfm-current-track
- 'info-playing-time))))
+ (or (emms-track-get emms-lastfm-current-track
+ 'info-playing-time)
+ 0))))
;; wait up to 5 seconds to submit np infos in order to finish handshaking.
(dotimes (i 5)
(when (not (and emms-lastfm-session-id