Skip to content

Commit

Permalink
add cover to beatmapset
Browse files Browse the repository at this point in the history
  • Loading branch information
kane50613 committed Jun 13, 2021
1 parent 8c52da1 commit 97bcf20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>tw.kane</groupId>
<artifactId>osu4j</artifactId>
<version>v2.3.2</version>
<version>v2.3.3</version>
<build>
<plugins>
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>tw.kane</groupId>
<artifactId>osu4j</artifactId>
<version>v2.3.2</version>
<version>v2.3.3</version>

<distributionManagement>
<repository>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/tw/kane/osu4j/Base/BeatmapSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class BeatmapSet {
private final DocumentContext object;

public String id, title, titleUnicode, artist, artistUnicode, creator, creatorId, previewUrl;
public String id, title, titleUnicode, artist, artistUnicode, creator, creatorId, previewUrl, cover;
public boolean isNSFW, hasVideo;

public RankedStatus rankedStatus;
Expand Down Expand Up @@ -37,6 +37,7 @@ public void init() {
previewUrl = JSON.get(object, "$.preview_url", String.class, null);
isNSFW = JSON.get(object, "$.nsfw", Boolean.class, false);
hasVideo = JSON.get(object, "$.video", Boolean.class, false);
cover = JSON.get(object, "$.covers.cover", String.class, null);

rankedStatus = RankedStatus.valueOf(JSON.get(object, "$.status", String.class, "pending").toUpperCase());

Expand Down

0 comments on commit 97bcf20

Please sign in to comment.