diff --git a/build.gradle b/build.gradle index 00294c5f..4e076ab6 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ allprojects { subprojects { apply plugin: "java" - version "3.0.2" + version "3.0.3" sourceCompatibility = 11 compileJava.options.encoding = "UTF-8" diff --git a/main/src/main/java/com/github/topisenpai/lavasrc/spotify/SpotifySourceManager.java b/main/src/main/java/com/github/topisenpai/lavasrc/spotify/SpotifySourceManager.java index b0978afd..df39b9dc 100644 --- a/main/src/main/java/com/github/topisenpai/lavasrc/spotify/SpotifySourceManager.java +++ b/main/src/main/java/com/github/topisenpai/lavasrc/spotify/SpotifySourceManager.java @@ -181,7 +181,7 @@ public AudioItem getAlbum(String id) throws IOException { return AudioReference.NO_TRACK; } - return new BasicAudioPlaylist(json.get("data").index(0).get("attributes").get("name").text(), tracks, null, false); + return new BasicAudioPlaylist(json.get("data").get("name").text(), tracks, null, false); } @@ -209,7 +209,7 @@ public AudioItem getPlaylist(String id) throws IOException { return AudioReference.NO_TRACK; } - return new BasicAudioPlaylist(json.get("data").index(0).get("attributes").get("name").text(), tracks, null, false); + return new BasicAudioPlaylist(json.get("data").get("name").text(), tracks, null, false); } diff --git a/plugin/src/main/resources/lavalink-plugins/lavasrc.properties b/plugin/src/main/resources/lavalink-plugins/lavasrc.properties index 45368b9e..6811c76b 100644 --- a/plugin/src/main/resources/lavalink-plugins/lavasrc.properties +++ b/plugin/src/main/resources/lavalink-plugins/lavasrc.properties @@ -1,3 +1,3 @@ name=lavasrc path=com.github.topisenpai.lavasrc -version=3.0.2 +version=3.0.3