Code

screen_artist: respect artist when adding albums
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sat, 21 Aug 2010 18:26:20 +0000 (20:26 +0200)
committerMax Kellermann <max@duempel.org>
Wed, 22 Sep 2010 16:18:42 +0000 (18:18 +0200)
NEWS
src/screen_artist.c

diff --git a/NEWS b/NEWS
index 775a6453afae570294aa174ed76c9bfeeb5c2c10..c33364ed2b4493a50d2f2b444e154deae211d909 100644 (file)
--- 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
 
 
index 15103eb813d4670ddf9587cc5236ccda80a16a82..5d77c1080396419fe75f2aa736df2c7db0c0ed12 100644 (file)
@@ -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);