From 751c358337b5fbb5b8e9eacbfc85007abc733205 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sat, 28 Sep 2024 15:16:24 +0200 Subject: [PATCH] Do not print toplist authors twice (#7429) --- .../de/danoeh/antennapod/net/discovery/ItunesTopListLoader.java | 2 +- .../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 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++) {