Skip to content

Commit

Permalink
Soundcloud fix from sedmelluq#650
Browse files Browse the repository at this point in the history
  • Loading branch information
thedarkcolour authored Mar 6, 2022
1 parent 707771a commit 0d04f6e
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,10 @@ public List<JsonBrowser> readPlaylistTracks(JsonBrowser playlistData) {

protected JsonBrowser findEntryOfKind(JsonBrowser data, String kind) {
for (JsonBrowser value : data.values()) {
for (JsonBrowser entry : value.get("data").values()) {
if (entry.isMap() && kind.equals(entry.get("kind").text())) {
return entry;
}
if (value.isMap() && kind.equals(value.get("data").get("kind").safeText())) {
return value.get("data");
}
}

return null;
}
}

0 comments on commit 0d04f6e

Please sign in to comment.