From cb78dc634180d72a6b0ce96b974bb614b5ad62ce Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Thu, 20 Dec 2012 00:26:29 +0100 Subject: [PATCH] spotify: Spotify wants 'track', not 'title' (#272) --- mopidy/backends/spotify/library.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mopidy/backends/spotify/library.py b/mopidy/backends/spotify/library.py index bfdcb4f5..cd6db63d 100644 --- a/mopidy/backends/spotify/library.py +++ b/mopidy/backends/spotify/library.py @@ -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]