fix for rss loader / rss type recognition

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7296 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent 4c72885cba
commit 84f2953cd8

@ -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;

Loading…
Cancel
Save