Improve BCPC.get() docstring

This commit is contained in:
Stein Magnus Jodal 2010-03-31 21:11:58 +02:00
parent cb3740138a
commit 96ddf9a881

View File

@ -96,11 +96,12 @@ class BaseCurrentPlaylistController(object):
Examples::
get(id=1) # Returns track with ID 1
get(uri='xyz') # Returns track with URI 'xyz'
get(id=1) # Returns track with ID 1
get(uri='xyz') # Returns track with URI 'xyz'
get(id=1, uri='xyz') # Returns track with ID 1 and URI 'xyz'
:param **criteria: on or more criteria to match by
:type **criteria: dict
:param criteria: on or more criteria to match by
:type criteria: dict
:rtype: :class:`mopidy.models.Track`
"""
matches = self._playlist.tracks