fix for RSS reader

pull/1/head
orbiter 13 years ago
parent 62202e2d71
commit 5f3b8dc040

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

Loading…
Cancel
Save