diff --git a/main/src/main/java/com/sedmelluq/discord/lavaplayer/source/soundcloud/DefaultSoundCloudDataReader.java b/main/src/main/java/com/sedmelluq/discord/lavaplayer/source/soundcloud/DefaultSoundCloudDataReader.java index b75e60ad7..a3d8d38e6 100644 --- a/main/src/main/java/com/sedmelluq/discord/lavaplayer/source/soundcloud/DefaultSoundCloudDataReader.java +++ b/main/src/main/java/com/sedmelluq/discord/lavaplayer/source/soundcloud/DefaultSoundCloudDataReader.java @@ -90,13 +90,10 @@ public List 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; } }