From 6f0167fac1738c6b9d81e9c86471e557329e4cb7 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Tue, 2 Dec 2014 12:52:05 +0100 Subject: [PATCH] get cloned crawl start parameter for snapshots --- htroot/CrawlStartExpert.html | 2 +- htroot/CrawlStartExpert.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/htroot/CrawlStartExpert.html b/htroot/CrawlStartExpert.html index c05569c73..89099b142 100644 --- a/htroot/CrawlStartExpert.html +++ b/htroot/CrawlStartExpert.html @@ -472,7 +472,7 @@ means a snapshot is only be generated if the crawl depth of a document is smaller or equal to the given number here. If the number is set to -1, no snapshots are generated. - +
diff --git a/htroot/CrawlStartExpert.java b/htroot/CrawlStartExpert.java index 425ba8b89..778df5f74 100644 --- a/htroot/CrawlStartExpert.java +++ b/htroot/CrawlStartExpert.java @@ -517,6 +517,7 @@ public class CrawlStartExpert { sb.getConfigBool("proxyAlwaysFresh", false) && Html2Image.wkhtmltopdfAvailable() && Html2Image.convertAvailable()) { prop.put("snapshotSelect", 1); + prop.put("snapshotSelect_snapshotsMaxDepth", post == null ? "-1" : post.get("snapshotsMaxDepth", "-1")); } else { prop.put("snapshotSelect", 0); }