Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for rss reader, see http://bugs.yacy.net/view.php?id=294
Michael Peter Christenef31d0f27984
diff --git a/source/net/yacy/cora/document/feed/RSSReader.java b/source/net/yacy/cora/document/feed/RSSReader.javaindex fdf2919b8..1feb51f5c 100644--- a/source/net/yacy/cora/document/feed/RSSReader.java+++ b/source/net/yacy/cora/document/feed/RSSReader.java@@ -185,7 +185,7 @@ public class RSSReader extends DefaultHandler {}this.item = new RSSMessage();this.parsingItem = true;- } else if (this.parsingItem && this.type == Type.atom && "link".equals(tag) && (atts.getValue("type") == null || atts.getValue("type").startsWith("text"))) {+ } else if (this.parsingItem && this.type == Type.atom && "link".equals(tag) && (atts.getValue("type") == null || this.item.getLink().length() == 0 || atts.getValue("type").startsWith("text") || atts.getValue("type").equals("application/xhtml+xml"))) {final String url = atts.getValue("href");if (url != null && url.length() > 0) this.item.setValue(Token.link, url);} else if ("image".equals(tag) || (this.parsingItem && this.type == Type.atom && "link".equals(tag) && (atts.getValue("type") == null || atts.getValue("type").startsWith("image")))) {