summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/syndication/namespace/rss20
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-07-31 19:58:22 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-07-31 19:58:22 +0200
commit4d48cab60fa6792153cbae1fff4a4710bef89748 (patch)
tree2127d6a57cf4bf7453f4455f45d68c0781928def /src/de/danoeh/antennapod/syndication/namespace/rss20
parentbc2eae53a810e9ae935412503084e061bf2d8f82 (diff)
downloadAntennaPod-4d48cab60fa6792153cbae1fff4a4710bef89748.zip
id and guid is now read by feedparser
Diffstat (limited to 'src/de/danoeh/antennapod/syndication/namespace/rss20')
-rw-r--r--src/de/danoeh/antennapod/syndication/namespace/rss20/NSRSS20.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/de/danoeh/antennapod/syndication/namespace/rss20/NSRSS20.java b/src/de/danoeh/antennapod/syndication/namespace/rss20/NSRSS20.java
index 3bd69f049..e6c62eab8 100644
--- a/src/de/danoeh/antennapod/syndication/namespace/rss20/NSRSS20.java
+++ b/src/de/danoeh/antennapod/syndication/namespace/rss20/NSRSS20.java
@@ -29,6 +29,7 @@ public class NSRSS20 extends Namespace {
public final static String CHANNEL = "channel";
public final static String ITEM = "item";
+ public final static String GUID = "guid";
public final static String TITLE = "title";
public final static String LINK = "link";
public final static String DESCR = "description";
@@ -80,7 +81,10 @@ public class NSRSS20 extends Namespace {
String top = topElement.getName();
SyndElement secondElement = state.getSecondTag();
String second = secondElement.getName();
- if (top.equals(TITLE)) {
+
+ if (top.equals(GUID) && second.equals(ITEM)) {
+ state.getCurrentItem().setItemIdentifier(content);
+ } else if (top.equals(TITLE)) {
if (second.equals(ITEM)) {
state.getCurrentItem().setTitle(content);
} else if (second.equals(CHANNEL)) {
@@ -102,7 +106,7 @@ public class NSRSS20 extends Namespace {
} else if (localName.equals(DESCR)) {
if (second.equals(CHANNEL)) {
state.getFeed().setDescription(content);
- } else if (second.equals(ITEM)){
+ } else if (second.equals(ITEM)) {
state.getCurrentItem().setDescription(content);
}