mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
fix for rss reader, see http://bugs.yacy.net/view.php?id=294
This commit is contained in:
parent
101a6e6e14
commit
ef31d0f279
|
@ -185,7 +185,7 @@ public class RSSReader extends DefaultHandler {
|
||||||
}
|
}
|
||||||
this.item = new RSSMessage();
|
this.item = new RSSMessage();
|
||||||
this.parsingItem = true;
|
this.parsingItem = true;
|
||||||
} else if (this.parsingItem && this.type == Type.atom && "link".equals(tag) && (atts.getValue("type") == null || atts.getValue("type").startsWith("text"))) {
|
} else if (this.parsingItem && this.type == Type.atom && "link".equals(tag) && (atts.getValue("type") == null || this.item.getLink().length() == 0 || atts.getValue("type").startsWith("text") || atts.getValue("type").equals("application/xhtml+xml"))) {
|
||||||
final String url = atts.getValue("href");
|
final String url = atts.getValue("href");
|
||||||
if (url != null && url.length() > 0) this.item.setValue(Token.link, url);
|
if (url != null && url.length() > 0) this.item.setValue(Token.link, url);
|
||||||
} else if ("image".equals(tag) || (this.parsingItem && this.type == Type.atom && "link".equals(tag) && (atts.getValue("type") == null || atts.getValue("type").startsWith("image")))) {
|
} else if ("image".equals(tag) || (this.parsingItem && this.type == Type.atom && "link".equals(tag) && (atts.getValue("type") == null || atts.getValue("type").startsWith("image")))) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user