MCPcopy Create free account
hub / github.com/OreosLab/bili / run

Method run

src/main/java/top/misec/task/VideoWatch.java:27–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25public class VideoWatch implements Task {
26
27 @Override
28 public void run() {
29 JsonObject dailyTaskStatus = getDailyTaskStatus();
30 String bvid = getVideoId.getRegionRankingVideoBvid();
31 if (!dailyTaskStatus.get("watch").getAsBoolean()) {
32 watchVideo(bvid);
33 } else {
34 log.info("本日观看视频任务已经完成了,不需要再观看视频了");
35 }
36
37 if (!dailyTaskStatus.get("share").getAsBoolean()) {
38 dailyAvShare(bvid);
39 } else {
40 log.info("本日分享视频任务已经完成了,不需要再分享视频了");
41 }
42 }
43
44 @Override
45 public String getName() {

Callers

nothing calls this directly

Calls 4

watchVideoMethod · 0.95
dailyAvShareMethod · 0.95
getDailyTaskStatusMethod · 0.80

Tested by

no test coverage detected