diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-09-28 15:16:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-28 15:16:24 +0200 |
commit | 751c358337b5fbb5b8e9eacbfc85007abc733205 (patch) | |
tree | 566562d5a557bdb63894eeec707bb64937518200 | |
parent | 7b2ebd8ab0c44560b3ddc0797dcd1f4a3d8bff67 (diff) | |
download | AntennaPod-751c358337b5fbb5b8e9eacbfc85007abc733205.zip |
Do not print toplist authors twice (#7429)
-rw-r--r-- | net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesTopListLoader.java | 2 | ||||
-rw-r--r-- | net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/PodcastSearchResult.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesTopListLoader.java b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesTopListLoader.java index c837a14ef..89995612e 100644 --- a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesTopListLoader.java +++ b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesTopListLoader.java @@ -60,7 +60,7 @@ public class ItunesTopListLoader { for (Feed subscribedFeed : subscribedFeeds) { if (subscribedFeed.getTitle() != null && subscribedFeed.getAuthor() != null && subscribedFeed.getState() == Feed.STATE_SUBSCRIBED) { - subscribedPodcastsSet.add(subscribedFeed.getTitle().trim() + " - " + subscribedFeed.getAuthor().trim()); + subscribedPodcastsSet.add(subscribedFeed.getTitle().trim()); } } List<PodcastSearchResult> suggestedNotSubscribed = new ArrayList<>(); diff --git a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/PodcastSearchResult.java b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/PodcastSearchResult.java index db33d2ce7..144481cfe 100644 --- a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/PodcastSearchResult.java +++ b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/PodcastSearchResult.java @@ -63,7 +63,7 @@ public class PodcastSearchResult { * @throws JSONException */ public static PodcastSearchResult fromItunesToplist(JSONObject json) throws JSONException { - String title = json.getJSONObject("title").getString("label"); + String title = json.getJSONObject("im:name").getString("label"); String imageUrl = null; JSONArray images = json.getJSONArray("im:image"); for(int i=0; imageUrl == null && i < images.length(); i++) { |