echonest/pyechonest

IndexError: list index out of range in song.Song('<invalid id>')

Opened this issue · 0 comments

example from documentation: s = song.Song('SOPEXHZ12873FD2AC7)'

calls this request: http://developer.echonest.com/api/v4/song/profile?api_key=&id=SOPEXHZ12873FD2AC7

which returns successfully despite not having any results in "songs"

as a result, this initialization results in the following stack trace:

Traceback (most recent call last):
  File "chordials.py", line 51, in <module>
    s = song.Song('SOPEXHZ12873FD2AC7')
  File "build/bdist.macosx-10.9-intel/egg/pyechonest/song.py", line 72, in __init__
  File "build/bdist.macosx-10.9-intel/egg/pyechonest/proxies.py", line 153, in __init__
IndexError: list index out of range