Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
apassant opened this issue May 20, 2014 · 0 comments
Open

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

apassant opened this issue May 20, 2014 · 0 comments

Comments

@apassant
Copy link

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]',)
@apassant apassant changed the title Missing id: for get_tracks() in docstrings Missing country ref for get_tracks() in docstrings (song.py) May 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant