Merge pull request #2762 from ByteHamster/feed-description
Do not overwrite feed description with item description
This commit is contained in:
commit
1b6f98203f
|
@ -47,6 +47,9 @@ public class NSITunes extends Namespace {
|
||||||
if(state.getContentBuf() == null) {
|
if(state.getContentBuf() == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
SyndElement secondElement = state.getSecondTag();
|
||||||
|
String second = secondElement.getName();
|
||||||
|
|
||||||
if (AUTHOR.equals(localName)) {
|
if (AUTHOR.equals(localName)) {
|
||||||
if (state.getFeed() != null) {
|
if (state.getFeed() != null) {
|
||||||
String author = state.getContentBuf().toString();
|
String author = state.getContentBuf().toString();
|
||||||
|
@ -95,10 +98,9 @@ public class NSITunes extends Namespace {
|
||||||
}
|
}
|
||||||
if (state.getCurrentItem() != null &&
|
if (state.getCurrentItem() != null &&
|
||||||
(TextUtils.isEmpty(state.getCurrentItem().getDescription()) ||
|
(TextUtils.isEmpty(state.getCurrentItem().getDescription()) ||
|
||||||
state.getCurrentItem().getDescription().length() * 1.25 < summary.length())
|
state.getCurrentItem().getDescription().length() * 1.25 < summary.length())) {
|
||||||
) {
|
|
||||||
state.getCurrentItem().setDescription(summary);
|
state.getCurrentItem().setDescription(summary);
|
||||||
} else if (state.getFeed() != null) {
|
} else if (NSRSS20.CHANNEL.equals(second) && state.getFeed() != null) {
|
||||||
state.getFeed().setDescription(summary);
|
state.getFeed().setDescription(summary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue