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

Method videoUpdate

src/main/java/top/misec/task/GetVideoId.java:136–151  ·  view source on GitHub ↗
(String mid)

Source from the content-addressed store, hash-verified

134 }
135
136 public void videoUpdate(String mid) {
137 String urlParam = "?mid=" + mid + "&ps=30&tid=0&pn=1&keyword=&order=pubdate&jsonp=jsonp";
138 JsonObject resultJson = HttpUtils.doGet(ApiList.GET_BVID_BY_CREATE + urlParam);
139 JsonArray jsonArray = resultJson.getAsJsonObject("data").getAsJsonObject("list").getAsJsonArray("vlist");
140
141 if (jsonArray != null) {
142 for (JsonElement videoInfo : jsonArray) {
143 String bvid = videoInfo.getAsJsonObject().get("bvid").getAsString();
144 // int play = videoInfo.getAsJsonObject().get("play").getAsInt();
145 if (CoinAdd.isCoinAdded(bvid)) {
146 this.rankVideoList.add(bvid);
147 this.followUpVideoList.add(bvid);
148 }
149 }
150 }
151 }
152}

Callers

nothing calls this directly

Calls 2

doGetMethod · 0.95
isCoinAddedMethod · 0.95

Tested by

no test coverage detected