Use unicode for Spotify search queries, as required by pyspotify 1.4 (fixes #129)
This commit is contained in:
parent
808b9e026a
commit
6b7e7d2889
@ -12,6 +12,8 @@ v0.6.0 (in development)
|
||||
|
||||
- Pykka 0.12.3 or greater is required.
|
||||
|
||||
- pyspotify 1.4 or greater is required.
|
||||
|
||||
- All config, data, and cache locations are now based on the XDG spec.
|
||||
|
||||
- This means that your settings file will need to be moved from
|
||||
@ -53,6 +55,9 @@ v0.6.0 (in development)
|
||||
- Increase the maximum number of results returned by Spotify searches from 32
|
||||
to 100.
|
||||
|
||||
- Send Spotify search queries to pyspotify as unicode objects, as required by
|
||||
pyspotify 1.4. (Fixes: :issue:`129`)
|
||||
|
||||
**multi-backend changes**
|
||||
|
||||
- Remove `destroy()` methods from backend controller and provider APIs, as it
|
||||
|
||||
@ -55,7 +55,7 @@ class SpotifyLibraryProvider(BaseLibraryProvider):
|
||||
spotify_query = u' '.join(spotify_query)
|
||||
logger.debug(u'Spotify search query: %s' % spotify_query)
|
||||
queue = Queue.Queue()
|
||||
self.backend.spotify.search(spotify_query.encode(ENCODING), queue)
|
||||
self.backend.spotify.search(spotify_query, queue)
|
||||
try:
|
||||
return queue.get(timeout=3) # XXX What is an reasonable timeout?
|
||||
except Queue.Empty:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user