Do not print toplist authors twice (#7429)

This commit is contained in:
ByteHamster 2024-09-28 15:16:24 +02:00 committed by GitHub
parent 7b2ebd8ab0
commit 751c358337
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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<>();

View File

@ -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++) {