diff --git a/mopidy/backends/__init__.py b/mopidy/backends/__init__.py index 2cb4c692..41cc4289 100644 --- a/mopidy/backends/__init__.py +++ b/mopidy/backends/__init__.py @@ -68,6 +68,23 @@ class BaseCurrentPlaylistController(object): self.playlist = self.playlist.with_(tracks=before+shuffled+after) +class BaseLibraryController(object): + def __init__(self, backend): + self.backend = backend + + def find_exact(self, type, query): + raise NotImplementedError + + def lookup(self, uri): + raise NotImplementedError + + def refresh(self, uri=None): + raise NotImplementedError + + def search(self, type, query): + raise NotImplementedError + + class BasePlaybackController(object): PAUSED = u'paused' PLAYING = u'playing' @@ -189,23 +206,6 @@ class BasePlaybackController(object): raise NotImplementedError -class BaseLibraryController(object): - def __init__(self, backend): - self.backend = backend - - def find_exact(self, type, query): - raise NotImplementedError - - def lookup(self, uri): - raise NotImplementedError - - def refresh(self, uri=None): - raise NotImplementedError - - def search(self, type, query): - raise NotImplementedError - - class BaseStoredPlaylistController(object): def __init__(self, backend): self.backend = backend