Support Atom Author
This commit is contained in:
parent
baf1569020
commit
3bc51b7a54
|
@ -28,6 +28,7 @@ public class NSAtom extends Namespace {
|
||||||
private static final String LINK = "link";
|
private static final String LINK = "link";
|
||||||
private static final String UPDATED = "updated";
|
private static final String UPDATED = "updated";
|
||||||
private static final String AUTHOR = "author";
|
private static final String AUTHOR = "author";
|
||||||
|
private static final String AUTHOR_NAME = "name";
|
||||||
private static final String CONTENT = "content";
|
private static final String CONTENT = "content";
|
||||||
private static final String IMAGE_LOGO = "logo";
|
private static final String IMAGE_LOGO = "logo";
|
||||||
private static final String IMAGE_ICON = "icon";
|
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));
|
state.getFeed().setImage(new FeedImage(state.getFeed(), content, null));
|
||||||
} else if (IMAGE_ICON.equals(top) && state.getFeed() != null) {
|
} else if (IMAGE_ICON.equals(top) && state.getFeed() != null) {
|
||||||
state.getFeed().setImage(new FeedImage(state.getFeed(), content, 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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue