get cloned crawl start parameter for snapshots

This commit is contained in:
Michael Peter Christen 2014-12-02 12:52:05 +01:00
parent a1ee101079
commit 6f0167fac1
2 changed files with 2 additions and 1 deletions

View File

@ -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.
</span></span>
<input type="text" name="snapshotsMaxDepth" id="snapshotsMaxDepth" size="2" maxlength="2" value="-1" />
<input type="text" name="snapshotsMaxDepth" id="snapshotsMaxDepth" size="2" maxlength="2" value="#[snapshotsMaxDepth]#" />
</dd>
<dt><label for="snapshot">Multiple Snapshot Versions</label></dt>
<dd>

View File

@ -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);
}