diff --git a/mopidy/backends/libspotify.py b/mopidy/backends/libspotify.py index d46f80fa..047f1328 100644 --- a/mopidy/backends/libspotify.py +++ b/mopidy/backends/libspotify.py @@ -81,10 +81,16 @@ class LibspotifyLibraryController(BaseLibraryController): else: spotify_query.append(u'%s:"%s"' % (field, value)) spotify_query = u' '.join(spotify_query) - logger.debug(u'Spotify search query: %s', spotify_query) logger.debug(u'In search method, search for: %s' % spotify_query) my_end, other_end = multiprocessing.Pipe() self.backend.spotify.search(spotify_query.encode(ENCODING), other_end) + logger.debug(u'In Library.search(), waiting for search results') + my_end.poll(None) + logger.debug(u'In Library.search(), receiving search results') + playlist = my_end.recv() + logger.debug(u'In Library.search(), done receiving search results') + logger.debug(['%s' % t.name for t in playlist.tracks]) + return playlist class LibspotifyPlaybackController(BasePlaybackController):