[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Some fixes in parsing the MPD library
From: |
Pavel Korytov |
Subject: |
[PATCH] Some fixes in parsing the MPD library |
Date: |
Mon, 02 Aug 2021 14:50:37 +0300 |
User-agent: |
Notmuch/0.32.2 (https://notmuchmail.org) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
Hello,
the attached patch changes a few lines to fix some problems I've
encountered while setting EMMS cache from MPD.
First, "emms-player-mpd-get-alists", which converts MPD response into a
list of alists, created a new record whenever it encountered a tag it has
already put in the current record. Which didn't work too well in my case,
for instance, "year" tags got attached to the wrong records.
According to the protocol specification at
https://mpd.readthedocs.io/en/latest/protocol.html#command-lsinfo,
however, a new record starts with either "file", "directory" or
"playlist", so I updated the function to follow that instead.
Second, for some reason the "albumartist" tag wasn't processed, so I
added that as well.
signature.asc
Description: PGP signature
0001-emms-player-mpd.el-improvements-in-parsing-MPD-libra.patch
Description: Text Data
--
Korytov Pavel
- [PATCH] Some fixes in parsing the MPD library,
Pavel Korytov <=