mirror of
https://github.com/balkian/go5ears.git
synced 2024-11-21 13:02:27 +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:
parent
f72336e897
commit
ec5d8ebe7c
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user