core: Deprecated playlists.filter()
This commit is contained in:
parent
d37bd62bb1
commit
df604bb3e5
@ -88,6 +88,9 @@ v1.0.0 (UNRELEASED)
|
|||||||
:meth:`~mopidy.core.PlaylistsController.get_items` instead. (Fixes:
|
:meth:`~mopidy.core.PlaylistsController.get_items` instead. (Fixes:
|
||||||
:issue:`1057`, PR: :issue:`1075`)
|
:issue:`1057`, PR: :issue:`1075`)
|
||||||
|
|
||||||
|
- **Deprecated:** :meth:`mopidy.core.PlaylistsController.filter`. Use
|
||||||
|
:meth:`~mopidy.core.PlaylistsController.as_list` and filter yourself.
|
||||||
|
|
||||||
**Backend API**
|
**Backend API**
|
||||||
|
|
||||||
- Remove default implementation of
|
- Remove default implementation of
|
||||||
|
|||||||
@ -141,6 +141,9 @@ class PlaylistsController(object):
|
|||||||
:param criteria: one or more criteria to match by
|
:param criteria: one or more criteria to match by
|
||||||
:type criteria: dict
|
:type criteria: dict
|
||||||
:rtype: list of :class:`mopidy.models.Playlist`
|
:rtype: list of :class:`mopidy.models.Playlist`
|
||||||
|
|
||||||
|
.. deprecated:: 1.0
|
||||||
|
Use :meth:`as_list` and filter yourself.
|
||||||
"""
|
"""
|
||||||
criteria = criteria or kwargs
|
criteria = criteria or kwargs
|
||||||
matches = self.playlists
|
matches = self.playlists
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user