Merge pull request #1555 from mfietz/issue/1183b-incorrect-itunes-image
RSS: Check that image url is not empty
This commit is contained in:
commit
c3facdbb7a
|
@ -1,5 +1,7 @@
|
|||
package de.danoeh.antennapod.core.syndication.namespace;
|
||||
|
||||
import android.text.TextUtils;
|
||||
|
||||
import org.xml.sax.Attributes;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
@ -36,9 +38,11 @@ public class NSITunes extends Namespace {
|
|||
} else {
|
||||
// this is the feed image
|
||||
// prefer to all other images
|
||||
if(!TextUtils.isEmpty(image.getDownload_url())) {
|
||||
image.setOwner(state.getFeed());
|
||||
state.getFeed().setImage(image);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue