From 58641100cebeaaf2c1fdb6001088f884b38cc0a6 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Thu, 23 Apr 2015 21:55:03 +0200 Subject: [PATCH] core: Add examples that shows that search is AND --- mopidy/core/library.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mopidy/core/library.py b/mopidy/core/library.py index 903f5bf6..e60ae57d 100644 --- a/mopidy/core/library.py +++ b/mopidy/core/library.py @@ -275,6 +275,9 @@ class LibraryController(object): # "file:///media/music" and "spotify:" search({'any': ['a']}, uris=['file:///media/music', 'spotify:']) + # Returns results matching artist 'xyz' and 'abc' in any backend + search({'artist': ['xyz', 'abc']}) + :param query: one or more queries to search for :type query: dict :param uris: zero or more URI roots to limit the search to