diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2018-06-08 20:27:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-08 20:27:11 +0200 |
commit | ac2acc65c36284270a8a41fe9e3fb50d03092d30 (patch) | |
tree | b6f854bb7b0d546cb5d2d1f527abd4c07df70b25 /core/src/play | |
parent | 9df23ebbf65cd80ae08f2fb3beb55f106a782a1f (diff) | |
parent | f0151501a5195bf3c2dbd50336c51005e629196f (diff) | |
download | AntennaPod-ac2acc65c36284270a8a41fe9e3fb50d03092d30.zip |
Merge branch 'develop' into remove-unused-code
Diffstat (limited to 'core/src/play')
-rw-r--r-- | core/src/play/java/de/danoeh/antennapod/core/cast/CastUtils.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/src/play/java/de/danoeh/antennapod/core/cast/CastUtils.java b/core/src/play/java/de/danoeh/antennapod/core/cast/CastUtils.java index f0a7214c9..aec559a5f 100644 --- a/core/src/play/java/de/danoeh/antennapod/core/cast/CastUtils.java +++ b/core/src/play/java/de/danoeh/antennapod/core/cast/CastUtils.java @@ -13,7 +13,6 @@ import java.util.Calendar; import java.util.List; import de.danoeh.antennapod.core.feed.Feed; -import de.danoeh.antennapod.core.feed.FeedImage; import de.danoeh.antennapod.core.feed.FeedItem; import de.danoeh.antennapod.core.feed.FeedMedia; import de.danoeh.antennapod.core.storage.DBReader; @@ -97,9 +96,9 @@ public class CastUtils { if (subtitle != null) { metadata.putString(MediaMetadata.KEY_SUBTITLE, subtitle); } - FeedImage image = feedItem.getImage(); - if (image != null && !TextUtils.isEmpty(image.getDownload_url())) { - metadata.addImage(new WebImage(Uri.parse(image.getDownload_url()))); + + if (!TextUtils.isEmpty(feedItem.getImageUrl())) { + metadata.addImage(new WebImage(Uri.parse(feedItem.getImageUrl()))); } Calendar calendar = Calendar.getInstance(); calendar.setTime(media.getItem().getPubDate()); |