Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fixed crawl profile xml result which did not show the correct crawl status.
Michael Peter Christenec95dfa2e631
diff --git a/htroot/CrawlProfileEditor_p.xml b/htroot/CrawlProfileEditor_p.xmlindex 69530b5fb..8d23bec3f 100644--- a/htroot/CrawlProfileEditor_p.xml+++ b/htroot/CrawlProfileEditor_p.xml@@ -3,7 +3,7 @@#{crawlProfiles}#<crawlProfile><name>#[name]#</name>- <status>#(status)#terminated::active#(/status)#</status>+ <status>#(status)#terminated::active::system#(/status)#</status><depth>#[depth]#</depth><mustmatch>#[mustmatch]#</mustmatch><mustnotmatch>#[mustnotmatch]#</mustnotmatch>diff --git a/source/net/yacy/crawler/data/CrawlProfile.java b/source/net/yacy/crawler/data/CrawlProfile.javaindex 5d94b5253..4fb782f60 100644--- a/source/net/yacy/crawler/data/CrawlProfile.java+++ b/source/net/yacy/crawler/data/CrawlProfile.java@@ -622,12 +622,14 @@ public class CrawlProfile extends ConcurrentHashMap<String, String> implements Mfinal boolean dark,final int count,final int domlistlength) {-+ boolean terminateButton = active && !CrawlSwitchboard.DEFAULT_PROFILES.contains(this.name());+ boolean deleteButton = !active;prop.put(CRAWL_PROFILE_PREFIX + count + "_dark", dark ? "1" : "0");prop.put(CRAWL_PROFILE_PREFIX + count + "_name", this.collectionName());- prop.put(CRAWL_PROFILE_PREFIX + count + "_terminateButton", (!active || CrawlSwitchboard.DEFAULT_PROFILES.contains(this.name())) ? "0" : "1");+ prop.put(CRAWL_PROFILE_PREFIX + count + "_status", terminateButton ? 1 : deleteButton ? 0 : 2);+ prop.put(CRAWL_PROFILE_PREFIX + count + "_terminateButton", terminateButton);prop.put(CRAWL_PROFILE_PREFIX + count + "_terminateButton_handle", this.handle());- prop.put(CRAWL_PROFILE_PREFIX + count + "_deleteButton", (active) ? "0" : "1");+ prop.put(CRAWL_PROFILE_PREFIX + count + "_deleteButton", deleteButton);prop.put(CRAWL_PROFILE_PREFIX + count + "_deleteButton_handle", this.handle());prop.put(CRAWL_PROFILE_PREFIX + count + "_handle", this.handle());prop.put(CRAWL_PROFILE_PREFIX + count + "_depth", this.depth());