diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-03-23 11:27:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-23 11:27:55 +0100 |
commit | f6b45e7162ce3909cb2b04a4124e71aad22240c6 (patch) | |
tree | 9aa8a0b64b399c99da4e8d82ad4dae146a10564f /playback | |
parent | f20ce1fc690788273bb779663a4f3211f47a0973 (diff) | |
download | AntennaPod-f6b45e7162ce3909cb2b04a4124e71aad22240c6.zip |
Rename FeedMedia methods to no longer have underscores (#7017)
Diffstat (limited to 'playback')
-rw-r--r-- | playback/cast/src/play/java/de/danoeh/antennapod/playback/cast/CastUtils.java | 2 | ||||
-rw-r--r-- | playback/cast/src/play/java/de/danoeh/antennapod/playback/cast/MediaInfoCreator.java | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/playback/cast/src/play/java/de/danoeh/antennapod/playback/cast/CastUtils.java b/playback/cast/src/play/java/de/danoeh/antennapod/playback/cast/CastUtils.java index 312b6b2f9..d71136863 100644 --- a/playback/cast/src/play/java/de/danoeh/antennapod/playback/cast/CastUtils.java +++ b/playback/cast/src/play/java/de/danoeh/antennapod/playback/cast/CastUtils.java @@ -132,7 +132,7 @@ public class CastUtils { return false; } Feed feed = fi.getFeed(); - return feed != null && TextUtils.equals(metadata.getString(KEY_FEED_URL), feed.getDownload_url()); + return feed != null && TextUtils.equals(metadata.getString(KEY_FEED_URL), feed.getDownloadUrl()); } /** diff --git a/playback/cast/src/play/java/de/danoeh/antennapod/playback/cast/MediaInfoCreator.java b/playback/cast/src/play/java/de/danoeh/antennapod/playback/cast/MediaInfoCreator.java index f579d4110..2ea5cdc49 100644 --- a/playback/cast/src/play/java/de/danoeh/antennapod/playback/cast/MediaInfoCreator.java +++ b/playback/cast/src/play/java/de/danoeh/antennapod/playback/cast/MediaInfoCreator.java @@ -97,8 +97,8 @@ public class MediaInfoCreator { if (!TextUtils.isEmpty(feed.getAuthor())) { metadata.putString(MediaMetadata.KEY_ARTIST, feed.getAuthor()); } - if (!TextUtils.isEmpty(feed.getDownload_url())) { - metadata.putString(CastUtils.KEY_FEED_URL, feed.getDownload_url()); + if (!TextUtils.isEmpty(feed.getDownloadUrl())) { + metadata.putString(CastUtils.KEY_FEED_URL, feed.getDownloadUrl()); } if (!TextUtils.isEmpty(feed.getLink())) { metadata.putString(CastUtils.KEY_FEED_WEBSITE, feed.getLink()); @@ -124,7 +124,7 @@ public class MediaInfoCreator { metadata.putString(CastUtils.KEY_STREAM_URL, media.getStreamUrl()); MediaInfo.Builder builder = new MediaInfo.Builder(media.getStreamUrl()) - .setContentType(media.getMime_type()) + .setContentType(media.getMimeType()) .setStreamType(MediaInfo.STREAM_TYPE_BUFFERED) .setMetadata(metadata); if (media.getDuration() > 0) { |