summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/syndication
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-07-26 18:05:50 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-07-26 18:05:50 +0200
commit9da07b8e729215e4657aae9e158ef18f1b4105a1 (patch)
tree9410f174cabc6ac2ab9744e07e17fd81586da7b7 /src/de/danoeh/antennapod/syndication
parent02b2ec56c889ab11cadcfac72c43bda953dfa111 (diff)
downloadAntennaPod-9da07b8e729215e4657aae9e158ef18f1b4105a1.zip
TypeGetter is now setting type attribute of feed
Diffstat (limited to 'src/de/danoeh/antennapod/syndication')
-rw-r--r--src/de/danoeh/antennapod/syndication/handler/TypeGetter.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java b/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java
index a96eb4a8e..f8066db40 100644
--- a/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java
+++ b/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java
@@ -40,12 +40,14 @@ public class TypeGetter {
if (eventType == XmlPullParser.START_TAG) {
String tag = xpp.getName();
if (tag.equals(ATOM_ROOT)) {
+ feed.setType(Feed.TYPE_ATOM1);
if (AppConfig.DEBUG)
Log.d(TAG, "Recognized type Atom");
return Type.ATOM;
} else if (tag.equals(RSS_ROOT)
&& (xpp.getAttributeValue(null, "version")
.equals("2.0"))) {
+ feed.setType(Feed.TYPE_RSS2);
if (AppConfig.DEBUG)
Log.d(TAG, "Recognized type RSS 2.0");
return Type.RSS20;