summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/syndication/namespace
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/danoeh/antennapod/syndication/namespace')
-rw-r--r--src/de/danoeh/antennapod/syndication/namespace/NSContent.java3
-rw-r--r--src/de/danoeh/antennapod/syndication/namespace/NSMedia.java13
-rw-r--r--src/de/danoeh/antennapod/syndication/namespace/NSRSS20.java7
-rw-r--r--src/de/danoeh/antennapod/syndication/namespace/NSSimpleChapters.java7
-rw-r--r--src/de/danoeh/antennapod/syndication/namespace/Namespace.java3
-rw-r--r--src/de/danoeh/antennapod/syndication/namespace/atom/AtomText.java3
-rw-r--r--src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java4
7 files changed, 17 insertions, 23 deletions
diff --git a/src/de/danoeh/antennapod/syndication/namespace/NSContent.java b/src/de/danoeh/antennapod/syndication/namespace/NSContent.java
index 7f2a3e87d..9ad3026be 100644
--- a/src/de/danoeh/antennapod/syndication/namespace/NSContent.java
+++ b/src/de/danoeh/antennapod/syndication/namespace/NSContent.java
@@ -1,8 +1,7 @@
package de.danoeh.antennapod.syndication.namespace;
-import org.xml.sax.Attributes;
-
import de.danoeh.antennapod.syndication.handler.HandlerState;
+import org.xml.sax.Attributes;
public class NSContent extends Namespace {
public static final String NSTAG = "content";
diff --git a/src/de/danoeh/antennapod/syndication/namespace/NSMedia.java b/src/de/danoeh/antennapod/syndication/namespace/NSMedia.java
index 053a81270..cc23167c1 100644
--- a/src/de/danoeh/antennapod/syndication/namespace/NSMedia.java
+++ b/src/de/danoeh/antennapod/syndication/namespace/NSMedia.java
@@ -1,14 +1,13 @@
package de.danoeh.antennapod.syndication.namespace;
-import java.util.concurrent.TimeUnit;
-
-import org.xml.sax.Attributes;
-
import android.util.Log;
-import de.danoeh.antennapod.AppConfig;
+import de.danoeh.antennapod.BuildConfig;
import de.danoeh.antennapod.feed.FeedMedia;
import de.danoeh.antennapod.syndication.handler.HandlerState;
import de.danoeh.antennapod.syndication.util.SyndTypeUtils;
+import org.xml.sax.Attributes;
+
+import java.util.concurrent.TimeUnit;
/** Processes tags from the http://search.yahoo.com/mrss/ namespace. */
public class NSMedia extends Namespace {
@@ -38,7 +37,7 @@ public class NSMedia extends Namespace {
try {
size = Long.parseLong(attributes.getValue(SIZE));
} catch (NumberFormatException e) {
- if (AppConfig.DEBUG)
+ if (BuildConfig.DEBUG)
Log.d(TAG, "Length attribute could not be parsed.");
}
@@ -50,7 +49,7 @@ public class NSMedia extends Namespace {
Long.parseLong(durationStr), TimeUnit.SECONDS);
}
} catch (NumberFormatException e) {
- if (AppConfig.DEBUG)
+ if (BuildConfig.DEBUG)
Log.d(TAG, "Duration attribute could not be parsed");
}
diff --git a/src/de/danoeh/antennapod/syndication/namespace/NSRSS20.java b/src/de/danoeh/antennapod/syndication/namespace/NSRSS20.java
index 3eb49172d..9572f87ae 100644
--- a/src/de/danoeh/antennapod/syndication/namespace/NSRSS20.java
+++ b/src/de/danoeh/antennapod/syndication/namespace/NSRSS20.java
@@ -1,15 +1,14 @@
package de.danoeh.antennapod.syndication.namespace;
-import org.xml.sax.Attributes;
-
import android.util.Log;
-import de.danoeh.antennapod.AppConfig;
+import de.danoeh.antennapod.BuildConfig;
import de.danoeh.antennapod.feed.FeedImage;
import de.danoeh.antennapod.feed.FeedItem;
import de.danoeh.antennapod.feed.FeedMedia;
import de.danoeh.antennapod.syndication.handler.HandlerState;
import de.danoeh.antennapod.syndication.util.SyndDateUtils;
import de.danoeh.antennapod.syndication.util.SyndTypeUtils;
+import org.xml.sax.Attributes;
/**
* SAX-Parser for reading RSS-Feeds
@@ -57,7 +56,7 @@ public class NSRSS20 extends Namespace {
try {
size = Long.parseLong(attributes.getValue(ENC_LEN));
} catch (NumberFormatException e) {
- if (AppConfig.DEBUG)
+ if (BuildConfig.DEBUG)
Log.d(TAG, "Length attribute could not be parsed.");
}
state.getCurrentItem().setMedia(
diff --git a/src/de/danoeh/antennapod/syndication/namespace/NSSimpleChapters.java b/src/de/danoeh/antennapod/syndication/namespace/NSSimpleChapters.java
index 55c26e812..3f983ee88 100644
--- a/src/de/danoeh/antennapod/syndication/namespace/NSSimpleChapters.java
+++ b/src/de/danoeh/antennapod/syndication/namespace/NSSimpleChapters.java
@@ -1,13 +1,12 @@
package de.danoeh.antennapod.syndication.namespace;
-import java.util.ArrayList;
-
-import org.xml.sax.Attributes;
-
import de.danoeh.antennapod.feed.Chapter;
import de.danoeh.antennapod.feed.SimpleChapter;
import de.danoeh.antennapod.syndication.handler.HandlerState;
import de.danoeh.antennapod.syndication.util.SyndDateUtils;
+import org.xml.sax.Attributes;
+
+import java.util.ArrayList;
public class NSSimpleChapters extends Namespace {
public static final String NSTAG = "psc|sc";
diff --git a/src/de/danoeh/antennapod/syndication/namespace/Namespace.java b/src/de/danoeh/antennapod/syndication/namespace/Namespace.java
index 9eafef71e..910131feb 100644
--- a/src/de/danoeh/antennapod/syndication/namespace/Namespace.java
+++ b/src/de/danoeh/antennapod/syndication/namespace/Namespace.java
@@ -1,8 +1,7 @@
package de.danoeh.antennapod.syndication.namespace;
-import org.xml.sax.Attributes;
-
import de.danoeh.antennapod.syndication.handler.HandlerState;
+import org.xml.sax.Attributes;
public abstract class Namespace {
diff --git a/src/de/danoeh/antennapod/syndication/namespace/atom/AtomText.java b/src/de/danoeh/antennapod/syndication/namespace/atom/AtomText.java
index fec20de2f..86b80d2ed 100644
--- a/src/de/danoeh/antennapod/syndication/namespace/atom/AtomText.java
+++ b/src/de/danoeh/antennapod/syndication/namespace/atom/AtomText.java
@@ -1,9 +1,8 @@
package de.danoeh.antennapod.syndication.namespace.atom;
-import org.apache.commons.lang3.StringEscapeUtils;
-
import de.danoeh.antennapod.syndication.namespace.Namespace;
import de.danoeh.antennapod.syndication.namespace.SyndElement;
+import org.apache.commons.lang3.StringEscapeUtils;
/** Represents Atom Element which contains text (content, title, summary). */
public class AtomText extends SyndElement {
diff --git a/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java b/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java
index bc68d6f6a..383b29fc8 100644
--- a/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java
+++ b/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java
@@ -1,7 +1,7 @@
package de.danoeh.antennapod.syndication.namespace.atom;
import android.util.Log;
-import de.danoeh.antennapod.AppConfig;
+import de.danoeh.antennapod.BuildConfig;
import de.danoeh.antennapod.feed.FeedImage;
import de.danoeh.antennapod.feed.FeedItem;
import de.danoeh.antennapod.feed.FeedMedia;
@@ -84,7 +84,7 @@ public class NSAtom extends Namespace {
size = Long.parseLong(strSize);
}
} catch (NumberFormatException e) {
- if (AppConfig.DEBUG) Log.d(TAG, "Length attribute could not be parsed.");
+ if (BuildConfig.DEBUG) Log.d(TAG, "Length attribute could not be parsed.");
}
String type = attributes.getValue(LINK_TYPE);
if (SyndTypeUtils.enclosureTypeValid(type)