1
0
mirror of https://github.com/balkian/go5ears.git synced 2024-12-22 09:28:13 +00:00

Fixed GoEar malformed URL

GoEar sends the ampersand in the names of the songs inside the XML. It
gives a parsing error, so I've replaced & in the raw xml.
This commit is contained in:
J.Fernando Sánchez 2013-01-24 22:36:00 +01:00
parent f72336e897
commit ec5d8ebe7c

View File

@ -71,6 +71,7 @@ app.get('/play', function(req,resp){
xml += data;
}).on('end', function() {
// the whole of webpage data has been collected. parsing time!
xml = xml.replace('&','');
parser.parseString(xml, function(err,result){
console.log("xml: "+xml);
console.log("Object: "+JSON.stringify(result));