From 3bc51b7a54753e4b510f57721be0d9d1791a8c5b Mon Sep 17 00:00:00 2001 From: Cj Malone Date: Wed, 20 Jul 2016 12:57:08 +0100 Subject: [PATCH] Support Atom Author --- .../antennapod/core/syndication/namespace/atom/NSAtom.java | 5 +++++ 1 file changed, 5 insertions(+) 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); + } } } }