remove workaround for #39 as it's not valid rdf 0.9 according to the spec

This commit is contained in:
Athou
2025-07-21 15:50:12 +02:00
parent 2c9ce7e8fc
commit 9853205849
3 changed files with 2 additions and 69 deletions

View File

@@ -1,30 +0,0 @@
package com.commafeed.backend.rome;
import com.rometools.rome.feed.rss.Description;
import com.rometools.rome.feed.rss.Item;
import com.rometools.rome.feed.synd.SyndContentImpl;
import com.rometools.rome.feed.synd.SyndEntry;
import com.rometools.rome.feed.synd.impl.ConverterForRSS090;
import io.quarkus.runtime.annotations.RegisterForReflection;
/**
* Support description tag for RSS09
*
*/
@RegisterForReflection
public class RSS090DescriptionConverter extends ConverterForRSS090 {
@Override
protected SyndEntry createSyndEntry(Item item, boolean preserveWireItem) {
SyndEntry entry = super.createSyndEntry(item, preserveWireItem);
Description desc = item.getDescription();
if (desc != null) {
SyndContentImpl syndDesc = new SyndContentImpl();
syndDesc.setValue(desc.getValue());
entry.setDescription(syndDesc);
}
return entry;
}
}

View File

@@ -1,32 +0,0 @@
package com.commafeed.backend.rome;
import java.util.Locale;
import org.jdom2.Element;
import com.rometools.rome.feed.rss.Description;
import com.rometools.rome.feed.rss.Item;
import com.rometools.rome.io.impl.RSS090Parser;
import io.quarkus.runtime.annotations.RegisterForReflection;
/**
* Support description tag for RSS09
*
*/
@RegisterForReflection
public class RSS090DescriptionParser extends RSS090Parser {
@Override
protected Item parseItem(Element rssRoot, Element eItem, Locale locale) {
Item item = super.parseItem(rssRoot, eItem, locale);
Element e = eItem.getChild("description", getRSSNamespace());
if (e != null) {
Description desc = new Description();
desc.setValue(e.getText());
item.setDescription(desc);
}
return item;
}
}

View File

@@ -1,7 +1,2 @@
WireFeedParser.classes=com.commafeed.backend.rome.OPML11Parser \
com.commafeed.backend.rome.RSS090DescriptionParser
Converter.classes=com.commafeed.backend.rome.RSS090DescriptionConverter
WireFeedGenerator.classes=com.commafeed.backend.rome.OPML11Generator
WireFeedParser.classes=com.commafeed.backend.rome.OPML11Parser
WireFeedGenerator.classes=com.commafeed.backend.rome.OPML11Generator