From 8dcb1f805d39efef31ea63d5c42af9eb6263712f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 28 May 2018 20:14:07 +0200 Subject: [PATCH] db/proxy: support tags "ArtistSort", "AlbumArtistSort", "AlbumSort" Closes #284 --- NEWS | 1 + src/db/plugins/ProxyDatabasePlugin.cxx | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index c1deceb9a..1b0fc1e59 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ ver 0.20.21 (not yet released) * database - proxy: add "password" setting + - proxy: support tags "ArtistSort", "AlbumArtistSort", "AlbumSort" ver 0.20.20 (2018/05/22) * protocol diff --git a/src/db/plugins/ProxyDatabasePlugin.cxx b/src/db/plugins/ProxyDatabasePlugin.cxx index bd6da2f01..b3d2d0a05 100644 --- a/src/db/plugins/ProxyDatabasePlugin.cxx +++ b/src/db/plugins/ProxyDatabasePlugin.cxx @@ -170,6 +170,13 @@ static constexpr struct { #if LIBMPDCLIENT_CHECK_VERSION(2,10,0) { TAG_MUSICBRAINZ_RELEASETRACKID, MPD_TAG_MUSICBRAINZ_RELEASETRACKID }, +#endif +#if LIBMPDCLIENT_CHECK_VERSION(2,11,0) + { TAG_ARTIST_SORT, MPD_TAG_ARTIST_SORT }, + { TAG_ALBUM_ARTIST_SORT, MPD_TAG_ALBUM_ARTIST_SORT }, +#endif +#if LIBMPDCLIENT_CHECK_VERSION(2,12,0) + { TAG_ALBUM_SORT, MPD_TAG_ALBUM_SORT }, #endif { TAG_NUM_OF_ITEM_TYPES, MPD_TAG_COUNT } };