Fix for albumartist data in MPD
Rufus Segar <[email protected]> Tue, 15 Oct 2024 21:43:21 +0100
| Newsgroups | gmane.emacs.emms.user |
|---|---|
| Message-ID | <[email protected]> |
I believe I have fixed a bug where the albumartist tag was not being recorded when importing cache from mpd. This meant that the browser was not able to sort by albumartist, and would instead fall back to the artist tag. The fix is fairly small, could this be checked and added upstream? Attached is the patch file. -- Thanks ~Rufus
add-albumartist-emms-player-mpd.patch
(text/x-patch, 604 B)
diff --git a/emms-player-mpd.el b/emms-player-mpd.el
index 4cafeb9..fcdc53d 100644
--- a/emms-player-mpd.el
+++ b/emms-player-mpd.el
@@ -1174,7 +1174,8 @@ rather than EMMS."
(dolist (data info)
(let ((name (car data))
(value (cdr data)))
- (setq name (cond ((string= name "artist") 'info-artist)
+ (setq name (cond ((string= name "albumartist") 'info-albumartist)
+ ((string= name "artist") 'info-artist)
((string= name "composer") 'info-composer)
((string= name "performer") 'info-performer)
((string= name "title") 'info-title)