diff options
author | ByteHamster <info@bytehamster.com> | 2020-05-01 14:39:18 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-05-01 14:39:23 +0200 |
commit | 16b7aa7424a45f7ebd66352767e57688cf43be8f (patch) | |
tree | 4224a18341e4f88da1dd966da6aae73b9f41bff2 | |
parent | df47dd37ef6f7e12d0500f8061f9ab8341256e69 (diff) | |
download | AntennaPod-16b7aa7424a45f7ebd66352767e57688cf43be8f.zip |
Fixed feed image tests
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/handler/FeedHandlerTest.java | 2 | ||||
-rw-r--r-- | core/src/play/java/de/danoeh/antennapod/core/cast/CastUtils.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/handler/FeedHandlerTest.java b/app/src/androidTest/java/de/test/antennapod/handler/FeedHandlerTest.java index 6d842aff5..ba4a944f7 100644 --- a/app/src/androidTest/java/de/test/antennapod/handler/FeedHandlerTest.java +++ b/app/src/androidTest/java/de/test/antennapod/handler/FeedHandlerTest.java @@ -118,7 +118,7 @@ public class FeedHandlerTest { assertEquals(media.getMime_type(), parsedMedia.getMime_type()); } - assertEquals(item.getImageUrl(), parsedFeed.getImageUrl()); + assertEquals(feed.getImageUrl(), item.getImageLocation()); if (item.getChapters() != null) { assertNotNull(parsedItem.getChapters()); 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 455850cd0..f01a8b638 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 @@ -100,8 +100,8 @@ public class CastUtils { metadata.putString(MediaMetadata.KEY_SUBTITLE, subtitle); } - if (!TextUtils.isEmpty(feedItem.getImageUrl())) { - metadata.addImage(new WebImage(Uri.parse(feedItem.getImageUrl()))); + if (!TextUtils.isEmpty(feedItem.getImageLocation())) { + metadata.addImage(new WebImage(Uri.parse(feedItem.getImageLocation()))); } Calendar calendar = Calendar.getInstance(); calendar.setTime(media.getItem().getPubDate()); |