From 39420b909a418f629be0bb8ba1e6f3269b9b2af6 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Wed, 18 Dec 2013 19:26:27 +0100 Subject: [PATCH] Support for daap.songartistid --- src/daap_query.gperf | 1 + src/dmap_fields.gperf | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/daap_query.gperf b/src/daap_query.gperf index 89f4d6c3..5c80221b 100644 --- a/src/daap_query.gperf +++ b/src/daap_query.gperf @@ -16,6 +16,7 @@ struct dmap_query_field_map; "daap.songalbum", "f.album", 0 "daap.songalbumid", "f.songalbumid", 1 "daap.songartist", "f.album_artist", 0 +"daap.songartistid", "f.songartistid", 1 "daap.songalbumartist", "f.album_artist", 0 "daap.songbitrate", "f.bitrate", 1 "daap.songcomment", "f.comment", 0 diff --git a/src/dmap_fields.gperf b/src/dmap_fields.gperf index 61e95412..872e5a1a 100644 --- a/src/dmap_fields.gperf +++ b/src/dmap_fields.gperf @@ -65,6 +65,7 @@ static const struct dmap_field_map dfm_dmap_asal = { dbmfi_offsetof(album), static const struct dmap_field_map dfm_dmap_asai = { dbmfi_offsetof(songalbumid), -1, -1 }; static const struct dmap_field_map dfm_dmap_asaa = { dbmfi_offsetof(album_artist), -1, dbgri_offsetof(songalbumartist) }; static const struct dmap_field_map dfm_dmap_asar = { dbmfi_offsetof(artist), -1, -1 }; +static const struct dmap_field_map dfm_dmap_asri = { dbmfi_offsetof(songartistid), -1, -1 }; static const struct dmap_field_map dfm_dmap_asbt = { dbmfi_offsetof(bpm), -1, -1 }; static const struct dmap_field_map dfm_dmap_asbr = { dbmfi_offsetof(bitrate), -1, -1 }; static const struct dmap_field_map dfm_dmap_ascm = { dbmfi_offsetof(comment), -1, -1 }; @@ -177,6 +178,7 @@ struct dmap_field; "daap.songalbumid", "asai", &dfm_dmap_asai, DMAP_TYPE_ULONG "daap.songalbum", "asal", &dfm_dmap_asal, DMAP_TYPE_STRING "daap.songartist", "asar", &dfm_dmap_asar, DMAP_TYPE_STRING +"daap.songartistid", "asri", &dfm_dmap_asri, DMAP_TYPE_ULONG "daap.songbitrate", "asbr", &dfm_dmap_asbr, DMAP_TYPE_USHORT "daap.songbeatsperminute", "asbt", &dfm_dmap_asbt, DMAP_TYPE_USHORT "daap.songcodectype", "ascd", &dfm_dmap_ascd, DMAP_TYPE_UINT