Skip to content

Commit

Permalink
fix album & playlist names being null
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Oct 8, 2022
1 parent bd076f0 commit b3b5771
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ allprojects {
subprojects {
apply plugin: "java"

version "3.0.2"
version "3.0.3"

sourceCompatibility = 11
compileJava.options.encoding = "UTF-8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}

Expand Down Expand Up @@ -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);

}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name=lavasrc
path=com.github.topisenpai.lavasrc
version=3.0.2
version=3.0.3

0 comments on commit b3b5771

Please sign in to comment.