mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-12-01 12:31:45 +00:00
Merge branch 'parse-invalid-opml' of git://github.com/arantius/AntennaPod into arantius-parse-invalid-opml
This commit is contained in:
@ -17,7 +17,6 @@ public class OpmlReader {
|
|||||||
|
|
||||||
// ATTRIBUTES
|
// ATTRIBUTES
|
||||||
private boolean isInOpml = false;
|
private boolean isInOpml = false;
|
||||||
private boolean isInBody = false;
|
|
||||||
private ArrayList<OpmlElement> elementList;
|
private ArrayList<OpmlElement> elementList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -47,12 +46,7 @@ public class OpmlReader {
|
|||||||
isInOpml = true;
|
isInOpml = true;
|
||||||
if (AppConfig.DEBUG)
|
if (AppConfig.DEBUG)
|
||||||
Log.d(TAG, "Reached beginning of OPML tree.");
|
Log.d(TAG, "Reached beginning of OPML tree.");
|
||||||
} else if (isInOpml && xpp.getName().equals(OpmlSymbols.BODY)) {
|
} else if (isInOpml && xpp.getName().equals(OpmlSymbols.OUTLINE)) {
|
||||||
isInBody = true;
|
|
||||||
if (AppConfig.DEBUG)
|
|
||||||
Log.d(TAG, "Reached beginning of body tree.");
|
|
||||||
|
|
||||||
} else if (isInBody && xpp.getName().equals(OpmlSymbols.OUTLINE)) {
|
|
||||||
if (AppConfig.DEBUG)
|
if (AppConfig.DEBUG)
|
||||||
Log.d(TAG, "Found new Opml element");
|
Log.d(TAG, "Found new Opml element");
|
||||||
OpmlElement element = new OpmlElement();
|
OpmlElement element = new OpmlElement();
|
||||||
|
|||||||
Reference in New Issue
Block a user