From c4445df8af07f45bd1527c9f920669a60836c8db Mon Sep 17 00:00:00 2001 From: Peter Schnebel Date: Sat, 26 Oct 2013 09:03:20 +0200 Subject: [PATCH] bugfix --- beetsplug/echonest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beetsplug/echonest.py b/beetsplug/echonest.py index e84776a56..c3843b752 100644 --- a/beetsplug/echonest.py +++ b/beetsplug/echonest.py @@ -196,7 +196,9 @@ class EchonestMetadataPlugin(plugins.BeetsPlugin): buckets=['audio_summary']) if songs is None: raise Exception(u'failed to retrieve info from upload') - return self._pick_song(songs, item) + # No need to _pick_song, match is match + # return self._pick_song(songs, item) + return songs[0] except Exception as exc: log.error(u'echonest: analysis failed: {0}'.format(str(exc))) return None