diff options
author | Colin Okay <colin@cicadas.surf> | 2022-10-31 07:15:40 -0500 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-10-31 07:15:40 -0500 |
commit | 49a1cf6766f2cf5cc28c7cdf5b234a80f4d02364 (patch) | |
tree | d4f80333d1f8a29f27ad76212b54a53eba0c12f2 /playlist.lisp | |
parent | a125ca9e82762f36930bd14e80232b005b7c56fc (diff) |
Fix: looping playback
Diffstat (limited to 'playlist.lisp')
-rw-r--r-- | playlist.lisp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/playlist.lisp b/playlist.lisp index b5c2c87..abb8e3d 100644 --- a/playlist.lisp +++ b/playlist.lisp @@ -135,11 +135,14 @@ (defun advance-now-playing (e) (when-let ((ctl (cur-playlist-ctl e))) - (stop-playback ctl) - (when-let (next (find-next-track ctl (now-playing-track ctl))) - (setf (now-playing-track ctl) next) - (load-now-playing-display ctl next) - (start-playback ctl)))) + + (if-let (next (find-next-track ctl (now-playing-track ctl))) + (progn + (stop-playback ctl) + (setf (now-playing-track ctl) next) + (load-now-playing-display ctl next) + (start-playback ctl)) + (stop-playback ctl)))) (defun previous-now-playing (e) (when-let* ((ctl |