From: Jonathan Neuschäfer Date: Sat, 21 Aug 2010 18:26:20 +0000 (+0200) Subject: screen_artist: respect artist when adding albums X-Git-Tag: release-0.18~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fecd8b0432be12738335ee3cd624518a3df7b95f;p=ncmpc.git screen_artist: respect artist when adding albums --- diff --git a/NEWS b/NEWS index 775a645..c33364e 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ ncmpc 0.18 - not yet released * screen_song: show song range +* screen_artist: respect artist when adding albums * po: added Italian translation diff --git a/src/screen_artist.c b/src/screen_artist.c index 15103eb..5d77c10 100644 --- a/src/screen_artist.c +++ b/src/screen_artist.c @@ -470,6 +470,9 @@ add_query(struct mpdclient *c, enum mpd_tag_type table, char *_filter) mpd_search_db_songs(connection, true); mpd_search_add_tag_constraint(connection, MPD_OPERATOR_DEFAULT, table, _filter); + if (table == MPD_TAG_ALBUM) + mpd_search_add_tag_constraint(connection, MPD_OPERATOR_DEFAULT, + MPD_TAG_ARTIST, artist); mpd_search_commit(connection); addlist = filelist_new_recv(connection);