booleanfakeImageHost=ms.url().getHost()!=null&&ms.url().getHost().indexOf("wikipedia")>0;// pages with image extension from wikipedia do not contain image files but html files... I know this is a bad hack, but many results come from wikipedia and we must handle that
// boolean fakeImageHost = ms.url().getHost() != null && ms.url().getHost().indexOf("wikipedia") > 0; // pages with image extension from wikipedia do not contain image files but html files... I know this is a bad hack, but many results come from wikipedia and we must handle that
// generalize above hack (regarding url with file extension but beeing a html (with html mime)
chardocType=Response.docType(mime);// first look at mime (as some html pages have img extension (like wikipedia)
if(docType==Response.DT_UNKNOWN)docType=Response.docType(ms.url());// try extension if mime wasn't successful