Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix for RSS reader

orbiter5f3b8dc040ff
diff --git a/source/net/yacy/cora/document/RSSReader.java b/source/net/yacy/cora/document/RSSReader.java
index a66a453af..5bcc6e284 100644
--- a/source/net/yacy/cora/document/RSSReader.java
+++ b/source/net/yacy/cora/document/RSSReader.java
@@ -182,10 +182,10 @@ public class RSSReader extends DefaultHandler {
}
this.item = new RSSMessage();
this.parsingItem = true;
- } else if (this.parsingItem && this.type == Type.atom && "link".equals(tag)) {
+ } else if (this.parsingItem && this.type == Type.atom && "link".equals(tag) && (atts.getValue("type") == null || atts.getValue("type").startsWith("text"))) {
final String url = atts.getValue("href");
if (url != null && url.length() > 0) this.item.setValue("link", url);
- } else if ("image".equals(tag)) {
+ } else if ("image".equals(tag) || (this.parsingItem && this.type == Type.atom && "link".equals(tag) && (atts.getValue("type") == null || atts.getValue("type").startsWith("image")))) {
this.parsingImage = true;
}
}