mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-20 21:01:17 +01:00
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:
parent
09fc0debf1
commit
43ccc0e276
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user