diff options
author | ByteHamster <info@bytehamster.com> | 2021-03-26 18:32:04 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2021-03-26 18:56:38 +0100 |
commit | 68e70d1b6bf824bd8803c66f7c5a9aee3a9edfe3 (patch) | |
tree | fc02464bf171cfdf103417b8103ba4a2d47fc849 /core/src/play/java | |
parent | 4941818b6fb4e0ec6df54da5fdd18cf59301c849 (diff) | |
download | AntennaPod-68e70d1b6bf824bd8803c66f7c5a9aee3a9edfe3.zip |
Show cover and shownotes for previewed episodes
Diffstat (limited to 'core/src/play/java')
-rw-r--r-- | core/src/play/java/de/danoeh/antennapod/core/cast/CastUtils.java | 8 |
1 files changed, 3 insertions, 5 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 ab638b568..2c9772298 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 @@ -225,6 +225,7 @@ public class CastUtils { if (!imageList.isEmpty()) { imageUrl = imageList.get(0).getUrl().toString(); } + String notes = metadata.getString(KEY_EPISODE_NOTES); result = new RemoteMedia(media.getContentId(), metadata.getString(KEY_EPISODE_IDENTIFIER), metadata.getString(KEY_FEED_URL), @@ -235,11 +236,8 @@ public class CastUtils { imageUrl, metadata.getString(KEY_FEED_WEBSITE), media.getContentType(), - metadata.getDate(MediaMetadata.KEY_RELEASE_DATE).getTime()); - String notes = metadata.getString(KEY_EPISODE_NOTES); - if (!TextUtils.isEmpty(notes)) { - ((RemoteMedia) result).setNotes(notes); - } + metadata.getDate(MediaMetadata.KEY_RELEASE_DATE).getTime(), + notes); Log.d(TAG, "Converted MediaInfo into RemoteMedia"); } if (result.getDuration() == 0 && media.getStreamDuration() > 0) { |