Skip to content

Commit

Permalink
1.1.220
Browse files Browse the repository at this point in the history
  • Loading branch information
wushuo894 committed Jan 15, 2025
1 parent 303ab76 commit 0355fcf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion UPDATE.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
重命名模版增加 分辨率 ${resolution}
PWA主题色跟随系统主题

close #143

bgm点格子前先判断状态,防止刷屏 #142 @EzraRT
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>ani.rss</groupId>
<artifactId>ani-rss</artifactId>
<version>1.1.219</version>
<version>1.1.220</version>

<properties>
<maven.compiler.source>11</maven.compiler.source>
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/ani/rss/util/BgmUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,14 @@ public static void collectionsEpisodes(String episodeId, Integer type) {
ThreadUtil.sleep(500);
Objects.requireNonNull(episodeId);

String body = HttpReq.get(host + "/v0/users/-/collections/-/episodes/" + episodeId, true)
// bgm点格子前先判断状态,防止刷屏 #142
JsonObject jsonObject = HttpReq.get(host + "/v0/users/-/collections/-/episodes/" + episodeId, true)
.header("Authorization", "Bearer " + ConfigUtil.CONFIG.getBgmToken())
.header("accept", ContentType.JSON.getValue())
.execute().body();
.contentType(ContentType.JSON.getValue())
.thenFunction(res -> GsonStatic.fromJson(res.body(), JsonObject.class));

JsonObject jsonObject = GsonStatic.fromJson(body, JsonObject.class);
int typeNow = jsonObject.get("type").getAsInt();
if (type.equals(typeNow)) {
if (type == typeNow) {
return;
}

Expand Down

0 comments on commit 0355fcf

Please sign in to comment.