Use search() as find_exact() implementation in dummy, despotify, and libspotify backend
This commit is contained in:
parent
25a3da22db
commit
d1ff2e9aea
@ -43,6 +43,8 @@ class DespotifyLibraryController(BaseLibraryController):
|
||||
return Playlist()
|
||||
return self.backend.translate.to_mopidy_playlist(result.playlist)
|
||||
|
||||
find_exact = search
|
||||
|
||||
|
||||
class DespotifyPlaybackController(BasePlaybackController):
|
||||
def _pause(self):
|
||||
|
||||
@ -18,6 +18,8 @@ class DummyLibraryController(BaseLibraryController):
|
||||
def search(self, type, query):
|
||||
return Playlist()
|
||||
|
||||
find_exact = search
|
||||
|
||||
class DummyPlaybackController(BasePlaybackController):
|
||||
def _next(self):
|
||||
return True
|
||||
|
||||
@ -60,6 +60,8 @@ class LibspotifyLibraryController(BaseLibraryController):
|
||||
self._search_results = None
|
||||
return result
|
||||
|
||||
find_exact = search
|
||||
|
||||
|
||||
class LibspotifyPlaybackController(BasePlaybackController):
|
||||
def _pause(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user