diff options
author | Simon Persson <simon@flaskpost.me> | 2021-03-24 20:58:56 +0100 |
---|---|---|
committer | Simon Persson <simon@flaskpost.me> | 2021-03-24 20:59:54 +0100 |
commit | 7dd2dce6ad7d75b9529afbfffc7b065b948646d4 (patch) | |
tree | 3be294e44e95dd4c4dceb09f8cacbe5956cb043f /src/db | |
parent | a7ba10423df80dbbe2e5959c5135f899f454fd5d (diff) |
Support new tags in proxy plugin
Add support for the following tags when using the proxy database plugin:
WORK
CONDUCTOR
LABEL
GROUPING
MUSICBRAINZ_WORKID
COMPOSERSORT
ENSEMBLE
MOVEMENT
MOVEMENTNUMBER
LOCATION
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/plugins/ProxyDatabasePlugin.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/db/plugins/ProxyDatabasePlugin.cxx b/src/db/plugins/ProxyDatabasePlugin.cxx index be3f81814..a352e3344 100644 --- a/src/db/plugins/ProxyDatabasePlugin.cxx +++ b/src/db/plugins/ProxyDatabasePlugin.cxx @@ -189,6 +189,20 @@ static constexpr struct { #if LIBMPDCLIENT_CHECK_VERSION(2,12,0) { TAG_ALBUM_SORT, MPD_TAG_ALBUM_SORT }, #endif +#if LIBMPDCLIENT_CHECK_VERSION(2,17,0) + { TAG_WORK, MPD_TAG_WORK }, + { TAG_CONDUCTOR, MPD_TAG_CONDUCTOR }, + { TAG_LABEL, MPD_TAG_LABEL }, + { TAG_GROUPING, MPD_TAG_GROUPING }, + { TAG_MUSICBRAINZ_WORKID, MPD_TAG_MUSICBRAINZ_WORKID }, +#endif +#if LIBMPDCLIENT_CHECK_VERSION(2,20,0) + { TAG_COMPOSERSORT, MPD_TAG_COMPOSER_SORT }, + { TAG_ENSEMBLE, MPD_TAG_ENSEMBLE }, + { TAG_MOVEMENT, MPD_TAG_MOVEMENT }, + { TAG_MOVEMENTNUMBER, MPD_TAG_MOVEMENTNUMBER }, + { TAG_LOCATION, MPD_TAG_LOCATION }, +#endif { TAG_NUM_OF_ITEM_TYPES, MPD_TAG_COUNT } }; |