Prefer itunes:image

This commit is contained in:
ByteHamster 2020-05-13 14:14:03 +02:00
parent 3032d3359e
commit cea8c3a398
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public class NSRSS20 extends Namespace {
state.getCurrentItem().setPubDate(DateUtils.parse(content)); state.getCurrentItem().setPubDate(DateUtils.parse(content));
} else if (URL.equals(top) && IMAGE.equals(second) && CHANNEL.equals(third)) { } else if (URL.equals(top) && IMAGE.equals(second) && CHANNEL.equals(third)) {
// prefer itunes:image // prefer itunes:image
if (state.getFeed() != null) { if (state.getFeed() != null && state.getFeed().getImageUrl() == null) {
state.getFeed().setImageUrl(content); state.getFeed().setImageUrl(content);
} }
} else if (DESCR.equals(localName)) { } else if (DESCR.equals(localName)) {