summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-10-25 10:03:02 -0500
committerColin Okay <colin@cicadas.surf>2022-10-25 10:03:02 -0500
commite75db7bd501d4a7b8c085f0a6de62666521b45f4 (patch)
tree597c7727ba6824f9169c5849cec9b50bb539a26b
parent1c73e820d0995e0aa74d0725c39f5c3b5e59d2e6 (diff)
Add: artist and duration display to track listing
-rw-r--r--vampire.lisp3
1 files changed, 3 insertions, 0 deletions
diff --git a/vampire.lisp b/vampire.lisp
index d530fb3..0d16bba 100644
--- a/vampire.lisp
+++ b/vampire.lisp
@@ -62,6 +62,7 @@
(setf (playlist-tracks pl) newlist
(track-playlists track) (delete pl (track-playlists track)
:test #'eq :count 1))))
+
;;; TRANSACTIONS
(defun append-track (pl tr)
@@ -143,6 +144,8 @@
(div (:bind view)
(section (:h4 :content (track-title track)))
(img (:bind thumb))
+ (p (:content (track-artist track)))
+ (p (:content (secs-to-hms (or (track-duration track) 0))))
(audio (:source (media-url-path track) :controls nil :bind audio)))
(set-on-click
view