Only use iTunes summary when

* no description is set yet OR
* it is clearly more detailed (i.e. longer) than the current description
This commit is contained in:
Martin Fietz 2017-04-15 14:32:01 +02:00
parent 09fc0debf1
commit 43ccc0e276

View File

@ -101,7 +101,10 @@ public class NSITunes extends Namespace {
if (TextUtils.isEmpty(summary)) {
return;
}
if (state.getCurrentItem() != null) {
if (state.getCurrentItem() != null &&
(TextUtils.isEmpty(state.getCurrentItem().getDescription()) ||
state.getCurrentItem().getDescription().length() * 1.25 < summary.length())
) {
state.getCurrentItem().setDescription(summary);
} else if (state.getFeed() != null) {
state.getFeed().setDescription(summary);