Skip to content

Commit

Permalink
优化windows更新方式
Browse files Browse the repository at this point in the history
  • Loading branch information
wushuo894 committed Oct 14, 2024
1 parent 7de6e39 commit 7318053
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/ani/rss/task/BgmTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import ani.rss.util.BgmUtil;
import ani.rss.util.ExceptionUtil;
import cn.hutool.core.thread.ThreadUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import lombok.extern.slf4j.Slf4j;

import java.util.List;
Expand All @@ -29,6 +29,10 @@ public void run() {
while (loop.get()) {
List<Ani> aniList = AniUtil.ANI_LIST;
for (Ani ani : aniList) {
String bgmUrl = ani.getBgmUrl();
if (StrUtil.isBlank(bgmUrl)) {
continue;
}
Boolean enable = ani.getEnable();
double score = ani.getScore();
if (enable || score < 1) {
Expand Down

0 comments on commit 7318053

Please sign in to comment.