"Search for the lyrics of a song along with their meaning" Example broken
Closed this issue · 2 comments
Running the "Search for the lyrics of a song along with their meaning" example caused the following error:
var firstVerses = lyrics.sections[0].verses[0];
^
TypeError: Cannot read property 'verses' of undefined
at lyricsSearchCb (/home/rapTest.js:14:43)
at explanationsCallback (/home/node_modules/rapgenius-js/src/geniusClient.js:107:14)
at /home/node_modules/rapgenius-js/src/geniusClient.js:83:18
at Request.callback (/home/node_modules/rapgenius-js/node_modules/superagent/lib/node/index.js:586:3)
at Request. (/home/node_modules/rapgenius-js/node_modules/superagent/lib/node/index.js:133:10)
at Request.EventEmitter.emit (events.js:95:17)
at Stream. (/home/node_modules/rapgenius-js/node_modules/superagent/lib/node/index.js:714:12)
at Stream.EventEmitter.emit (events.js:117:20)
at Unzip. (/home/node_modules/rapgenius-js/node_modules/superagent/lib/node/utils.js:120:12)
at Unzip.EventEmitter.emit (events.js:117:20)
Yeah saw that.
Seems rapgenius has changed the format of their lyrics on their site.
Will look into it during the week.
I have fixed the bugs.
The example works again and all test pass as well:).