Use unicode for Spotify search queries, as required by pyspotify 1.4 (fixes #129)

This commit is contained in:
Stein Magnus Jodal 2011-09-24 20:04:55 +02:00
parent 808b9e026a
commit 6b7e7d2889
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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: