get cloned crawl start parameter for snapshots

pull/1/head
Michael Peter Christen 10 years ago
parent a1ee101079
commit 6f0167fac1

@ -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, 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. no snapshots are generated.
</span></span> </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> </dd>
<dt><label for="snapshot">Multiple Snapshot Versions</label></dt> <dt><label for="snapshot">Multiple Snapshot Versions</label></dt>
<dd> <dd>

@ -517,6 +517,7 @@ public class CrawlStartExpert {
sb.getConfigBool("proxyAlwaysFresh", false) && sb.getConfigBool("proxyAlwaysFresh", false) &&
Html2Image.wkhtmltopdfAvailable() && Html2Image.convertAvailable()) { Html2Image.wkhtmltopdfAvailable() && Html2Image.convertAvailable()) {
prop.put("snapshotSelect", 1); prop.put("snapshotSelect", 1);
prop.put("snapshotSelect_snapshotsMaxDepth", post == null ? "-1" : post.get("snapshotsMaxDepth", "-1"));
} else { } else {
prop.put("snapshotSelect", 0); prop.put("snapshotSelect", 0);
} }

Loading…
Cancel
Save