summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fietz <Martin.Fietz@gmail.com>2016-11-01 17:26:58 +0100
committerMartin Fietz <Martin.Fietz@gmail.com>2016-11-01 17:26:58 +0100
commit04bcf6e697827c6e449b2e10d2c589ff763fa5a3 (patch)
tree442724a70aaee7169d4ce04502c04ca6ba0ae650
parent61411258480d2c66438faf44eb64faf4b03274e5 (diff)
downloadAntennaPod-04bcf6e697827c6e449b2e10d2c589ff763fa5a3.zip
Only store the feed's author(s), not that of individual items
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/atom/NSAtom.java13
1 files changed, 6 insertions, 7 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 6214b8793..90f5f5f20 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
@@ -214,13 +214,12 @@ 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)) {
- String currentName = state.getFeed().getAuthor();
- if (currentName == null) {
- state.getFeed().setAuthor(content);
- } else {
- }
+ } else if (AUTHOR_NAME.equals(top) && AUTHOR.equals(second) &&
+ state.getFeed() != null && state.getCurrentItem() == null) {
+ String currentName = state.getFeed().getAuthor();
+ if (currentName == null) {
+ state.getFeed().setAuthor(content);
+ } else {
state.getFeed().setAuthor(currentName + "\n" + content);
}
}