diff options
author | Cj Malone <Cj-Malone@users.noreply.github.com> | 2016-07-20 13:26:40 +0100 |
---|---|---|
committer | Cj Malone <Cj-Malone@users.noreply.github.com> | 2016-07-20 13:26:40 +0100 |
commit | 96468f0e8588e3b4804cb7a66ae2097763b9470d (patch) | |
tree | edc05edaaafa77893b420568d2068024017557a9 /core/src | |
parent | 3bc51b7a54753e4b510f57721be0d9d1791a8c5b (diff) | |
download | AntennaPod-96468f0e8588e3b4804cb7a66ae2097763b9470d.zip |
Add Atom lang support
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/syndication/handler/TypeGetter.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/syndication/handler/TypeGetter.java b/core/src/main/java/de/danoeh/antennapod/core/syndication/handler/TypeGetter.java index a086d6632..ee0a71f30 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/syndication/handler/TypeGetter.java +++ b/core/src/main/java/de/danoeh/antennapod/core/syndication/handler/TypeGetter.java @@ -45,6 +45,12 @@ public class TypeGetter { case ATOM_ROOT: feed.setType(Feed.TYPE_ATOM1); Log.d(TAG, "Recognized type Atom"); + + String strLang = xpp.getAttributeValue("http://www.w3.org/XML/1998/namespace", "lang"); + if (strLang != null) { + feed.setLanguage(strLang); + } + return Type.ATOM; case RSS_ROOT: String strVersion = xpp.getAttributeValue(null, "version"); |