mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
30 lines
673 B
Java
30 lines
673 B
Java
package com.commafeed.backend.rome;
|
|
|
|
import org.jdom.Element;
|
|
|
|
import com.sun.syndication.feed.rss.Description;
|
|
import com.sun.syndication.feed.rss.Item;
|
|
import com.sun.syndication.io.impl.RSS090Parser;
|
|
|
|
/**
|
|
* Support description tag for RSS09
|
|
*
|
|
*/
|
|
public class RSS090DescriptionParser extends RSS090Parser {
|
|
|
|
@Override
|
|
protected Item parseItem(Element rssRoot, Element eItem) {
|
|
Item item = super.parseItem(rssRoot, eItem);
|
|
|
|
Element e = eItem.getChild("description", getRSSNamespace());
|
|
if (e != null) {
|
|
Description desc = new Description();
|
|
desc.setValue(e.getText());
|
|
item.setDescription(desc);
|
|
}
|
|
|
|
return item;
|
|
}
|
|
|
|
}
|