[PATCH] Parse disc number for mpd tracks

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Parse disc number for mpd tracks

Emanuel Evans-2
Before this change, tracks from multi-disc albums were ordered
incorrectly by default (all "track 1"s, then all "track 2"s, etc.)
---
 lisp/emms-player-mpd.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/emms-player-mpd.el b/lisp/emms-player-mpd.el
index a9da1a4..327938d 100644
--- a/lisp/emms-player-mpd.el
+++ b/lisp/emms-player-mpd.el
@@ -1138,6 +1138,7 @@ rather than EMMS."
                        ((string= name "title") 'info-title)
                        ((string= name "album") 'info-album)
                        ((string= name "track") 'info-tracknumber)
+                       ((string= name "disc") 'info-discnumber)
                        ((string= name "date") 'info-year)
                        ((string= name "genre") 'info-genre)
                        ((string= name "time")
--
2.18.1


_______________________________________________
Emms-help mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/emms-help
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Parse disc number for mpd tracks

Yoni Rabkin-2

patched

thank you


Emanuel Evans <[hidden email]> writes:

> Before this change, tracks from multi-disc albums were ordered
> incorrectly by default (all "track 1"s, then all "track 2"s, etc.)
> ---
>  lisp/emms-player-mpd.el | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/lisp/emms-player-mpd.el b/lisp/emms-player-mpd.el
> index a9da1a4..327938d 100644
> --- a/lisp/emms-player-mpd.el
> +++ b/lisp/emms-player-mpd.el
> @@ -1138,6 +1138,7 @@ rather than EMMS."
>                         ((string= name "title") 'info-title)
>                         ((string= name "album") 'info-album)
>                         ((string= name "track") 'info-tracknumber)
> +                       ((string= name "disc") 'info-discnumber)
>                         ((string= name "date") 'info-year)
>                         ((string= name "genre") 'info-genre)
>                         ((string= name "time")

--
   "Cut your own wood and it will warm you twice"

_______________________________________________
Emms-help mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/emms-help