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

Changed html to text to avoid escaped characters

This commit is contained in:
J.Fernando Sánchez 2013-01-24 21:55:02 +01:00
parent b8e884b354
commit f72336e897

View File

@ -42,9 +42,9 @@ app.get('/search', function(req, resp){
$(resultsol).find('li').each(function(i,elem){
var a=$(elem).find('a');
var id=a.attr('href').split('/')[1];
var title = a.find('span.songtitleinfo').html();
var group = a.find('span.groupnameinfo').html();
var quality = $(elem).find('p.comment').html().split('|')[0];
var title = a.find('span.songtitleinfo').text();
var group = a.find('span.groupnameinfo').text();
var quality = $(elem).find('p.comment').text().split('|')[0];
if(typeof title != 'undefined' && typeof group != 'undefined' ){
results.push({id:id,title:title,group:group,quality:quality})
}