From 057ab8877497bee18689c18617c66b2ccd9a9b7f Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Thu, 19 May 2016 08:44:10 +0200 Subject: [PATCH] Add PR #117 to changelog --- README.rst | 7 +++++++ mopidy_gmusic/library.py | 6 ++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index a3ecc48..766150f 100644 --- a/README.rst +++ b/README.rst @@ -149,6 +149,13 @@ Credits Changelog ========= +v1.1.0 (UNRELEASED) +------------------- + +- Make search work for gmusicapi >= 10.0. (Fixes: #116, PR: #117) +- Enable search for accounts without All Access. (PR: #117) + + v1.0.0 (2015-10-23) ------------------- diff --git a/mopidy_gmusic/library.py b/mopidy_gmusic/library.py index 6444549..735d441 100644 --- a/mopidy_gmusic/library.py +++ b/mopidy_gmusic/library.py @@ -296,8 +296,7 @@ def search(self, query=None, uris=None, exact=False): lib_tracks, lib_artists, lib_albums = self._search_library(query, uris) if query: - aa_tracks, aa_artists, aa_albums = self._search( - query, uris) + aa_tracks, aa_artists, aa_albums = self._search(query, uris) for aa_artist in aa_artists: lib_artists.add(aa_artist) @@ -336,8 +335,7 @@ def _search(self, query=None, uris=None): logger.info( 'Searching Google Play Music for: %s', values[0]) - res = self.backend.session.search( - values[0], max_results=50) + res = self.backend.session.search(values[0], max_results=50) if res is None: return [], [], []