From cea8c3a3985fad247ce1eaca76962b7872b895a1 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Wed, 13 May 2020 14:14:03 +0200 Subject: [PATCH] Prefer itunes:image --- .../danoeh/antennapod/core/syndication/namespace/NSRSS20.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSRSS20.java b/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSRSS20.java index 98ea8553a..3fc0a69d2 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSRSS20.java +++ b/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSRSS20.java @@ -130,7 +130,7 @@ public class NSRSS20 extends Namespace { state.getCurrentItem().setPubDate(DateUtils.parse(content)); } else if (URL.equals(top) && IMAGE.equals(second) && CHANNEL.equals(third)) { // prefer itunes:image - if (state.getFeed() != null) { + if (state.getFeed() != null && state.getFeed().getImageUrl() == null) { state.getFeed().setImageUrl(content); } } else if (DESCR.equals(localName)) {