core: Deprecated playlists.filter()

This commit is contained in:
Stein Magnus Jodal 2015-03-23 00:49:56 +01:00
parent d37bd62bb1
commit df604bb3e5
2 changed files with 6 additions and 0 deletions

View File

@ -88,6 +88,9 @@ v1.0.0 (UNRELEASED)
:meth:`~mopidy.core.PlaylistsController.get_items` instead. (Fixes:
:issue:`1057`, PR: :issue:`1075`)
- **Deprecated:** :meth:`mopidy.core.PlaylistsController.filter`. Use
:meth:`~mopidy.core.PlaylistsController.as_list` and filter yourself.
**Backend API**
- Remove default implementation of

View File

@ -141,6 +141,9 @@ class PlaylistsController(object):
:param criteria: one or more criteria to match by
:type criteria: dict
:rtype: list of :class:`mopidy.models.Playlist`
.. deprecated:: 1.0
Use :meth:`as_list` and filter yourself.
"""
criteria = criteria or kwargs
matches = self.playlists