Support Atom Author

This commit is contained in:
Cj Malone 2016-07-20 12:57:08 +01:00
parent baf1569020
commit 3bc51b7a54
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}
}
}
}