'更新可用状态'

This commit is contained in:
zhangjie
2024-03-17 11:52:41 +08:00
parent cef129a7a1
commit ad17a37b26

View File

@@ -135,10 +135,11 @@ public class Cg51 extends Spider {
for (Element element : doc.select("div.dplayer")) {
String play = element.attr("data-config");
JSONObject jsonObject = new JSONObject(play);
JSONObject video = jsonObject.getJSONObject("video");
if (playUrl == ""){
playUrl = "" + index + "集$" + jsonObject.get("url");
playUrl = "" + index + "集$" + video.get("url");
}else {
playUrl = playUrl + "#第" + index + "集$" + jsonObject.get("url");
playUrl = playUrl + "#第" + index + "集$" + video.get("url");
}
index++;
}