diff options
author | Colin Okay <colin@cicadas.surf> | 2022-11-27 07:54:32 -0800 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-11-27 07:54:32 -0800 |
commit | 5efaca483832d967dab3f0a26961404cbe4c1fa2 (patch) | |
tree | 6815de5245d70a0e6fcfc5a5e7cdcece3b5e23e6 /model.lisp | |
parent | e53a656f96612975905c0322497afee8a48ae289 (diff) |
Fix: playlist duration trying to add nil track-duration to integer
This is a hotfix. A TRACK's DURATION slot should never be nil.
Diffstat (limited to 'model.lisp')
-rw-r--r-- | model.lisp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -76,7 +76,7 @@ (defun playlist-duration (pl) (reduce #'+ (playlist-tracks pl) - :key 'track-duration + :key (lambda (tr) (or (track-duration tr) 0)) :initial-value 0)) (defun add-track (tr pl &optional (n -1)) |