summaryrefslogtreecommitdiff
path: root/model.lisp
diff options
context:
space:
mode:
authorGrant Shangreaux <shoshin@cicadas.surf>2023-02-22 21:02:48 -0600
committerGrant Shangreaux <shoshin@cicadas.surf>2023-02-22 21:02:48 -0600
commitc6bfcaa305259a07a046b8bfa380419180f6be45 (patch)
tree2b52d4dce82f83a224103a3a25a3a093e18191f5 /model.lisp
parentdf29da3e0e51f407f65680e4b3fdd380d301f33a (diff)
Add: WIP track info editing
Diffstat (limited to 'model.lisp')
-rw-r--r--model.lisp7
1 files changed, 7 insertions, 0 deletions
diff --git a/model.lisp b/model.lisp
index de1ea10..65968cb 100644
--- a/model.lisp
+++ b/model.lisp
@@ -178,3 +178,10 @@
(defun update-playlist-title (playlist title)
(with-transaction ()
(setf (playlist-title playlist) title)))
+
+(defun update-track-info (track new-artist new-album new-title)
+ (with-transaction ()
+ (with-slots (artist album title) track
+ (setf artist new-artist
+ album new-album
+ title new-title))))