grooveshark: fix NoneType return value when user is not logged

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2014-01-02 17:30:02 +01:00
commit 097cbf56bb

View file

@ -100,6 +100,7 @@ class GroovesharkBrowser(BaseBrowser):
response = self.API_post(method, parameters, self.create_token(method))
return self.create_collection_from_playlists_result(response['result']['Playlists'], split_path)
return []
def search_audio(self, pattern):
method = 'getResultsFromSearch'