Do not print toplist authors twice (#7429)
This commit is contained in:
parent
7b2ebd8ab0
commit
751c358337
|
@ -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<>();
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue