Skip to content

Commit b18d56e

Browse files
committed
remove hard coded screenshot path
1 parent 7dd623f commit b18d56e

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public FetchedData fetch(Resource resource) throws Exception {
239239
} catch (Exception e){
240240
Map<String, Object> tempmap = new HashMap<>();
241241
tempmap.put("type", "file");
242-
tempmap.put("targetdir", "/dbfs/FileStore/screenshots/"+resource.getCrawlId()+System.currentTimeMillis());
242+
tempmap.put("targetdir", pluginConfig.getOrDefault("chrome.selenium.screenshotdir","/dbfs/FileStore/screenshots/")+resource.getCrawlId()+System.currentTimeMillis());
243243
scripter.screenshot(tempmap);
244244
e.printStackTrace();
245245
}

0 commit comments

Comments
 (0)