From ec5d8ebe7c57c83e8d6234c5ca20e418fb1bbf2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2EFernando=20S=C3=A1nchez?= Date: Thu, 24 Jan 2013 22:36:00 +0100 Subject: [PATCH] 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. --- player.js | 1 + 1 file changed, 1 insertion(+) diff --git a/player.js b/player.js index 1923614..2c625df 100644 --- a/player.js +++ b/player.js @@ -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));