echonest/pyechonest

Missing country ref for get_tracks() in docstrings (song.py)

Opened this issue · 0 comments

References to get_tracks should be

song.get_tracks('id:7digital-xx')

instead of

song.get_tracks('id:7digital')

As it doesn't seem to like 7digital alone

 File "audio.py", line 15, in get_song_data
     track = song.get_tracks('7digital')[0]
 File "build/bdist.linux-x86_64/egg/pyechonest/song.py", line 347, in get_tracks
 File "build/bdist.linux-x86_64/egg/pyechonest/proxies.py", line 159, in get_attribute
 File "build/bdist.linux-x86_64/egg/pyechonest/proxies.py", line 23, in get_attribute
 File "build/bdist.linux-x86_64/egg/pyechonest/util.py", line 252, in callm
 File "build/bdist.linux-x86_64/egg/pyechonest/util.py", line 122, in get_successful_response
pyechonest.util.EchoNestAPIError: (u'Echo Nest API Error 5: bucket - Invalid parameter: bucket "id:7digital" is not one of "song_hotttnesss", "song_hotttnesss_rank", "artist_familiarity", "artist_familiarity_rank", "artist_hotttnesss", "artist_hotttnesss_rank", "artist_discovery", "artist_discovery_rank", "audio_summary", "artist_location", "tracks", "scores", "song_type", "song_discovery", "song_discovery_rank", "song_currency", "song_currency_rank", "id:7digital-US", "id:7digital-AU", "id:7digital-UK", "id:facebook", "id:fma", "id:emi_open_collection", "id:emi_bluenote", "id:emi_artists", "id:twitter", "id:spotify-WW", "id:seatwave", "id:lyricfind-US", "id:jambase", "id:musixmatch-WW", "id:rdio-US", "id:rdio-AT", "id:rdio-AU", "id:rdio-BR", "id:rdio-CA", "id:rdio-CH", "id:rdio-DE", "id:rdio-DK", "id:rdio-ES", "id:rdio-FI", "id:rdio-FR", "id:rdio-IE", "id:rdio-IT", "id:rdio-NL", "id:rdio-NO", "id:rdio-NZ", "id:rdio-PT", "id:rdio-SE", "id:emi_electrospective", "id:rdio-WW", "id:rdio-EE", "id:rdio-LT", "id:rdio-LV", "id:rdio-IS", "id:rdio-BE", "id:rdio-MX", "id:seatgeek", "id:rdio-GB", "id:rdio-CZ", "id:rdio-CO", "id:rdio-PL", "id:rdio-MY", "id:rdio-HK", "id:rdio-CL", "id:twitter_numeric", "id:7digital-ES", "id:openaura", or "id:<CATALOG ID>" [HTTP 400]',)