summaryrefslogtreecommitdiff
path: root/src/de/podfetcher/syndication
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-07-05 00:10:12 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-07-05 00:10:12 +0200
commit764ef2b1d68dbd6c8bc2ca34283dfdf6cfb8ec6e (patch)
tree3d2d29177207d20b0ab8860106ce76368832ee72 /src/de/podfetcher/syndication
parent68e5d90b9cd13a2e970718218b5e8b8e98e7aaf5 (diff)
downloadAntennaPod-764ef2b1d68dbd6c8bc2ca34283dfdf6cfb8ec6e.zip
Added 'author' and 'language' attributes to Feed
Diffstat (limited to 'src/de/podfetcher/syndication')
-rw-r--r--src/de/podfetcher/syndication/namespace/itunes/NSITunes.java6
-rw-r--r--src/de/podfetcher/syndication/namespace/rss20/NSRSS20.java3
2 files changed, 8 insertions, 1 deletions
diff --git a/src/de/podfetcher/syndication/namespace/itunes/NSITunes.java b/src/de/podfetcher/syndication/namespace/itunes/NSITunes.java
index a10f2cd17..db78c73c3 100644
--- a/src/de/podfetcher/syndication/namespace/itunes/NSITunes.java
+++ b/src/de/podfetcher/syndication/namespace/itunes/NSITunes.java
@@ -15,6 +15,8 @@ public class NSITunes extends Namespace{
private static final String IMAGE_TITLE = "image";
private static final String IMAGE_HREF = "href";
+ private static final String AUTHOR = "author";
+
@Override
public SyndElement handleElementStart(String localName, HandlerState state,
@@ -31,7 +33,9 @@ public class NSITunes extends Namespace{
@Override
public void handleElementEnd(String localName, HandlerState state) {
-
+ if (localName.equals(AUTHOR)) {
+ state.getFeed().setAuthor(state.getContentBuf().toString());
+ }
}
diff --git a/src/de/podfetcher/syndication/namespace/rss20/NSRSS20.java b/src/de/podfetcher/syndication/namespace/rss20/NSRSS20.java
index 9cd2c42eb..dfae49b7d 100644
--- a/src/de/podfetcher/syndication/namespace/rss20/NSRSS20.java
+++ b/src/de/podfetcher/syndication/namespace/rss20/NSRSS20.java
@@ -36,6 +36,7 @@ public class NSRSS20 extends Namespace {
public final static String ENCLOSURE = "enclosure";
public final static String IMAGE = "image";
public final static String URL = "url";
+ public final static String LANGUAGE = "language";
public final static String ENC_URL = "url";
public final static String ENC_LEN = "length";
@@ -105,6 +106,8 @@ public class NSRSS20 extends Namespace {
state.getCurrentItem().setDescription(content);
}
+ } else if (localName.equals(LANGUAGE)) {
+ state.getFeed().setLanguage(content.toLowerCase());
}
}
}