From: Max Kellermann Date: Sat, 3 Oct 2009 18:13:13 +0000 (+0200) Subject: screen_search: check for SEARCH_URI in search_simple_query() X-Git-Tag: release-0.16~191 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ad7a50490ac2d132e1afa0c5aa68e238c542510c;p=ncmpc.git screen_search: check for SEARCH_URI in search_simple_query() Call mpd_search_add_uri_constraint() in this case. --- diff --git a/src/screen_search.c b/src/screen_search.c index e41e3b0..2dd911d 100644 --- a/src/screen_search.c +++ b/src/screen_search.c @@ -186,6 +186,13 @@ search_simple_query(struct mpd_connection *connection, bool exact_match, if (list != NULL) filelist_sort_all(list, compare_filelistentry_format); + } else if (table == SEARCH_URI) { + mpd_search_db_songs(connection, exact_match); + mpd_search_add_uri_constraint(connection, MPD_OPERATOR_DEFAULT, + filter_utf8); + mpd_search_commit(connection); + + list = filelist_new_recv(connection); } else { mpd_search_db_songs(connection, exact_match); mpd_search_add_tag_constraint(connection, MPD_OPERATOR_DEFAULT,