spotify: Spotify wants 'track', not 'title' (#272)

This commit is contained in:
Stein Magnus Jodal 2012-12-20 00:26:29 +01:00
parent 30edba0a3e
commit cb78dc6341

View File

@ -117,9 +117,7 @@ class SpotifyLibraryProvider(base.BaseLibraryProvider):
def _translate_search_query(self, mopidy_query):
spotify_query = []
for (field, values) in mopidy_query.iteritems():
if field == 'track':
field = 'title'
elif field == 'date':
if field == 'date':
field = 'year'
if not hasattr(values, '__iter__'):
values = [values]