From 12d109d232bcba500ed1c9a9a21e75db7e3cadea Mon Sep 17 00:00:00 2001 From: Cadel Watson Date: Sun, 4 Oct 2015 07:52:41 +1100 Subject: [PATCH] docs: Add available search terms to LibraryController search --- mopidy/core/library.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mopidy/core/library.py b/mopidy/core/library.py index ce420812..556f0a30 100644 --- a/mopidy/core/library.py +++ b/mopidy/core/library.py @@ -269,6 +269,9 @@ class LibraryController(object): def search(self, query=None, uris=None, exact=False, **kwargs): """ Search the library for tracks where ``field`` contains ``values``. + ``field`` can be one of ``uri``, ``track_name``, ``album``, ``artist``, + ``albumartist``, ``composer``, ``performer``, ``track_no``, ``genre``, + ``date``, ``comment`` or ``any``. If ``uris`` is given, the search is limited to results from within the URI roots. For example passing ``uris=['file:']`` will limit the search