mirror of
https://github.com/balkian/go5ears.git
synced 2024-11-21 21:02:29 +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;
|
xml += data;
|
||||||
}).on('end', function() {
|
}).on('end', function() {
|
||||||
// the whole of webpage data has been collected. parsing time!
|
// the whole of webpage data has been collected. parsing time!
|
||||||
|
xml = xml.replace('&','');
|
||||||
parser.parseString(xml, function(err,result){
|
parser.parseString(xml, function(err,result){
|
||||||
console.log("xml: "+xml);
|
console.log("xml: "+xml);
|
||||||
console.log("Object: "+JSON.stringify(result));
|
console.log("Object: "+JSON.stringify(result));
|
||||||
|
Loading…
Reference in New Issue
Block a user