Skip to content

Commit

Permalink
fix for rss loader / rss type recognition
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7296 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Nov 3, 2010
1 parent 4c72885 commit 84f2953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/net/yacy/cora/document/RSSReader.java
Expand Up @@ -97,7 +97,7 @@ public static RSSReader parse(int maxsize, final byte[] a) throws IOException {
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;
Expand Down

0 comments on commit 84f2953

Please sign in to comment.