Merge pull request #1555 from mfietz/issue/1183b-incorrect-itunes-image

RSS: Check that image url is not empty
This commit is contained in:
Martin Fietz 2016-01-16 11:06:25 +01:00
commit c3facdbb7a
1 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,7 @@
package de.danoeh.antennapod.core.syndication.namespace; package de.danoeh.antennapod.core.syndication.namespace;
import android.text.TextUtils;
import org.xml.sax.Attributes; import org.xml.sax.Attributes;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@ -36,9 +38,11 @@ public class NSITunes extends Namespace {
} else { } else {
// this is the feed image // this is the feed image
// prefer to all other images // prefer to all other images
if(!TextUtils.isEmpty(image.getDownload_url())) {
image.setOwner(state.getFeed()); image.setOwner(state.getFeed());
state.getFeed().setImage(image); state.getFeed().setImage(image);
} }
}
} }