Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for scheduling of rss feeds
orbitere8f90201a592
diff --git a/htroot/Load_RSS_p.java b/htroot/Load_RSS_p.javaindex d339eacaa..3d7505935 100644--- a/htroot/Load_RSS_p.java+++ b/htroot/Load_RSS_p.java@@ -289,7 +289,7 @@ public class Load_RSS_p {if (record_api && rss != null && rss.getFeed() != null && rss.getFeed().getChannel() != null) {// record API action- RSSLoader.recordAPI(sb, url, rss.getFeed(), repeat_time, repeat_unit);+ RSSLoader.recordAPI(sb, post.get(WorkTables.TABLE_API_COL_APICALL_PK, null), url, rss.getFeed(), repeat_time, repeat_unit);}// show items from rssdiff --git a/source/de/anomic/crawler/RSSLoader.java b/source/de/anomic/crawler/RSSLoader.javaindex 33cc04131..5c02a3043 100644--- a/source/de/anomic/crawler/RSSLoader.java+++ b/source/de/anomic/crawler/RSSLoader.java@@ -74,7 +74,7 @@ public class RSSLoader extends Thread {indexAllRssFeed(sb, urlf, feed);// add the feed also to the scheduler- recordAPI(sb, urlf, feed, 7, "seldays");+ recordAPI(sb, null, urlf, feed, 7, "seldays");}public static void indexAllRssFeed(Switchboard sb, DigestURI url, RSSFeed feed) {@@ -119,12 +119,13 @@ public class RSSLoader extends Thread {}- public static void recordAPI(Switchboard sb, DigestURI url, RSSFeed feed, int repeat_time, String repeat_unit) {+ public static void recordAPI(Switchboard sb, String apicall_pk, DigestURI url, RSSFeed feed, int repeat_time, String repeat_unit) {// record API actionbyte[] pk = null;serverObjects post = new serverObjects();post.put("url", url.toNormalform(true, false));post.put("indexAllItemContent", "");+ if (apicall_pk != null) post.put(WorkTables.TABLE_API_COL_APICALL_PK, apicall_pk);if (repeat_time > 0) {// store as scheduled api callpk = sb.tables.recordAPICall(post, "Load_RSS_p.html", WorkTables.TABLE_API_TYPE_CRAWLER, "import feed " + url.toNormalform(true, false), repeat_time, repeat_unit.substring(3));