diff options
author | Cj Malone <Cj-Malone@users.noreply.github.com> | 2016-07-20 12:57:08 +0100 |
---|---|---|
committer | Cj Malone <Cj-Malone@users.noreply.github.com> | 2016-07-20 12:57:08 +0100 |
commit | 3bc51b7a54753e4b510f57721be0d9d1791a8c5b (patch) | |
tree | 7d9dc30aca33f2103ec9f96d526d3d3d5ab7b75f /core/src | |
parent | baf15690204e3c3993e19aa72486c0bc80b80f52 (diff) | |
download | AntennaPod-3bc51b7a54753e4b510f57721be0d9d1791a8c5b.zip |
Support Atom Author
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/atom/NSAtom.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/atom/NSAtom.java b/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/atom/NSAtom.java index 8410c934c..52b05aa98 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/atom/NSAtom.java +++ b/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/atom/NSAtom.java @@ -28,6 +28,7 @@ public class NSAtom extends Namespace { private static final String LINK = "link"; private static final String UPDATED = "updated"; private static final String AUTHOR = "author"; + private static final String AUTHOR_NAME = "name"; private static final String CONTENT = "content"; private static final String IMAGE_LOGO = "logo"; private static final String IMAGE_ICON = "icon"; @@ -199,6 +200,10 @@ public class NSAtom extends Namespace { state.getFeed().setImage(new FeedImage(state.getFeed(), content, null)); } else if (IMAGE_ICON.equals(top) && state.getFeed() != null) { state.getFeed().setImage(new FeedImage(state.getFeed(), content, null)); + } else if (AUTHOR.equals(second) && state.getFeed() != null) { + if (AUTHOR_NAME.equals(top)) { + state.getFeed().setAuthor(content); + } } } } |