change to handle new template

This commit is contained in:
Eric Barboni 2015-11-13 18:00:42 +01:00
parent ee84911352
commit 44093a57de

View File

@ -66,7 +66,7 @@ protected void doGet( HttpServletRequest req, HttpServletResponse resp )
// replace all links !!
Document document = Jsoup.parse( is, "UTF-8", "" );
Element body = document.body();
Element body = document.body().child( 0 );
Elements links = body.select( "a[href]" );
@ -107,7 +107,7 @@ protected void doGet( HttpServletRequest req, HttpServletResponse resp )
}
Document res = new Document( "" );
res.appendChild( body.select( "div[class=container-fluid]" ).last() );
res.appendChild( body.select( "div[id=main]" ).first() );
Elements scripts = body.select( "script" );
for ( Element script : scripts )