libspotify: Implement LibspotifyLibraryController.lookup(uri) so that I can use ncmpcpp to listen to music at work
This commit is contained in:
parent
cf0986a3a0
commit
441362028c
@ -63,6 +63,10 @@ class LibspotifyCurrentPlaylistController(BaseCurrentPlaylistController):
|
||||
|
||||
|
||||
class LibspotifyLibraryController(BaseLibraryController):
|
||||
def lookup(self, uri):
|
||||
spotify_track = Link.from_string(uri).as_track()
|
||||
return LibspotifyTranslator.to_mopidy_track(spotify_track)
|
||||
|
||||
def search(self, type, what):
|
||||
if type is u'any':
|
||||
query = what
|
||||
|
||||
Loading…
Reference in New Issue
Block a user