Skip to content

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

fix for rss loader / rss type recognition

orbiter84f2953cd88a
diff --git a/source/net/yacy/cora/document/RSSReader.java b/source/net/yacy/cora/document/RSSReader.java
index 97ea0c7c4..665f112c8 100644
--- a/source/net/yacy/cora/document/RSSReader.java
+++ b/source/net/yacy/cora/document/RSSReader.java
@@ -97,7 +97,7 @@ public class RSSReader extends DefaultHandler {
if (!equals(a, "<?xml".getBytes())) {
throw new IOException("response does not contain valid xml");
}
- final String end = new String(a, a.length - 10, 10);
+ final String end = new String(a, a.length - 80, 80);
Type type = Type.none;
if (end.indexOf("rss") > 0) type = Type.rss;
if (end.indexOf("feed") > 0) type = Type.atom;