Code

screen_artist: respect artist when adding albums
[ncmpc.git] / src / screen_artist.c
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);