relax opml import conditions (#677)

This commit is contained in:
Athou
2014-11-22 22:29:56 +01:00
parent a477c9fa6d
commit 4684e43f42

View File

@@ -19,8 +19,7 @@ public class OPML11Parser extends OPML10Parser {
public boolean isMyType(Document document) {
Element e = document.getRootElement();
if (e.getName().equals("opml") && (e.getChild("head") == null || e.getChild("head").getChild("docs") == null)
&& (e.getAttributeValue("version") == null || e.getAttributeValue("version").equals("1.1"))) {
if (e.getName().equals("opml")) {
return true;
}