mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
we no longer need to generate OPML 1.1 files
This commit is contained in:
@@ -1,26 +0,0 @@
|
|||||||
package com.commafeed.backend.rome;
|
|
||||||
|
|
||||||
import org.jdom2.Element;
|
|
||||||
|
|
||||||
import com.rometools.opml.feed.opml.Opml;
|
|
||||||
|
|
||||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add missing title to the generated OPML
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@RegisterForReflection
|
|
||||||
public class OPML11Generator extends com.rometools.opml.io.impl.OPML10Generator {
|
|
||||||
|
|
||||||
public OPML11Generator() {
|
|
||||||
super("opml_1.1");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected Element generateHead(Opml opml) {
|
|
||||||
Element head = new Element("head");
|
|
||||||
addNotNullSimpleElement(head, "title", opml.getTitle());
|
|
||||||
return head;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,2 +1 @@
|
|||||||
WireFeedParser.classes=com.commafeed.backend.rome.OPML11Parser
|
WireFeedParser.classes=com.commafeed.backend.rome.OPML11Parser
|
||||||
WireFeedGenerator.classes=com.commafeed.backend.rome.OPML11Generator
|
|
||||||
|
|||||||
Reference in New Issue
Block a user