Skip to content

Commit

Permalink
get cloned crawl start parameter for snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Orbiter committed Dec 2, 2014
1 parent a1ee101 commit 6f0167f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion htroot/CrawlStartExpert.html
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ <h2>Expert Crawl Start</h2>
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>
Expand Down
1 change: 1 addition & 0 deletions htroot/CrawlStartExpert.java
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ public static serverObjects respond(@SuppressWarnings("unused") final RequestHea
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);
}
Expand Down

0 comments on commit 6f0167f

Please sign in to comment.