Prefer itunes:image

This commit is contained in:
ByteHamster 2020-05-13 14:14:03 +02:00
parent 3032d3359e
commit cea8c3a398

View File

@ -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)) {