portify
portify copied to clipboard
Issues with playlists with " in name [with workaround]
I got this error message:
/home/erb/portify/data/gmusic.js:233
cb({ 'id': response[1][0] });
^
TypeError: Cannot read property '0' of undefined
at /home/erb/portify/data/gmusic.js:233:27
at Request.callback (/home/erb/portify/data/node_modules/superagent/lib/node/index.js:662:3)
at Request.<anonymous> (/home/erb/portify/data/node_modules/superagent/lib/node/index.js:132:10)
at Request.EventEmitter.emit (events.js:95:17)
at IncomingMessage.<anonymous> (/home/erb/portify/data/node_modules/superagent/lib/node/index.js:818:12)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:910:16
at process._tickCallback (node.js:415:13)
It was solved by simply renaming the playlist, I'm presuming this is due to the API handling " in playlist names properly (Sending them raw in the request, corrupting JSON or whatever).