uses image server now
This commit is contained in:
parent
4a6af762d4
commit
a204d37d37
@ -33,6 +33,7 @@ function cleaner(b) {
|
||||
for (var i = 0; i < unwanted.length; i++) {
|
||||
_b.find(unwanted[i]).remove();
|
||||
}
|
||||
|
||||
return _b;
|
||||
}
|
||||
|
||||
@ -99,6 +100,22 @@ function processBody(body, url) {
|
||||
logger.debug(title);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
tdihbody.find('IMG').each(function(i, elem) {
|
||||
//fruits[i] = $(this).text();
|
||||
var s = 'http://image.silvrtree.co.uk/900,fit/' + $(this).attr("src");
|
||||
|
||||
$(this).attr("src", s);
|
||||
|
||||
});
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
logger.error(e);
|
||||
}
|
||||
|
||||
|
||||
obj.url = url;
|
||||
obj.html = $.html();
|
||||
obj.reduced = STRING(tdihbody.html()).trim().s;
|
||||
|
Loading…
Reference in New Issue
Block a user