Skip to content

Commit 554f8ad

Browse files
committed
temp block fallback
1 parent 522cd65 commit 554f8ad

File tree

1 file changed

+2
-2
lines changed
  • sparkler-core/sparkler-plugins/fetcher-chrome/src/main/java/edu/usc/irds/sparkler/plugin

1 file changed

+2
-2
lines changed

sparkler-core/sparkler-plugins/fetcher-chrome/src/main/java/edu/usc/irds/sparkler/plugin/FetcherChrome.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,12 @@ public FetchedData fetch(Resource resource) throws Exception {
238238
LOG.debug("Time taken to load {} - {} ", resource.getUrl(), (System.currentTimeMillis() - start));
239239

240240
System.out.println("LATEST STATUS: "+latestStatus);
241-
if (!(latestStatus >= 200 && latestStatus < 300) && latestStatus != 0) {
241+
/*if (!(latestStatus >= 200 && latestStatus < 300) && latestStatus != 0) {
242242
// If not fetched through plugin successfully
243243
// Falling back to default fetcher
244244
LOG.info("{} Failed to fetch the page. Falling back to default fetcher.", resource.getUrl());
245245
return super.fetch(resource);
246-
}
246+
}*/
247247

248248
fetchedData = new FetchedData(html.getBytes(), "text/html", latestStatus);
249249
resource.setStatus(ResourceStatus.FETCHED.toString());

0 commit comments

Comments
 (0)