unresolvedCache.remove(resUrl);
doFetch = false;
}
}
if (doFetch) {
JResult res = fetcher.fetchAndExtract(url, resolveTimeout, false);
// set resolved url
if (tweet.getUrlEntries().size() > 0) {
UrlEntry ue = tweet.getUrlEntries().iterator().next();
ue.setResolvedUrl(res.getUrl());
ue.setResolvedTitle(res.getTitle());
ue.setResolvedSnippet(res.getText());
ue.setResolvedDomain(Helper.extractDomain(url));
}
if (urlTitleCleaner.contains(res.getTitle()))
tweet.setQuality(20);
if (res.getTitle().isEmpty())
emptyTitleCounter.addAndGet(1);
counter.addAndGet(1);
if (thread < 3) {
float secs = (System.nanoTime() - start.get()) / 1e+9f;
logger.info(thread + "| " + counter.get() / secs + " entries/sec"//, secs:" + secs