Update Cokemv.java

This commit is contained in:
gzlinz2
2022-10-26 17:25:11 +08:00
committed by GitHub
parent 8bc126c8b9
commit b3f144c5bb
@@ -393,7 +393,7 @@ public class Cokemv extends Spider {
JSONObject result = new JSONObject(); JSONObject result = new JSONObject();
for (int i = 0; i < allScript.size(); i++) { for (int i = 0; i < allScript.size(); i++) {
String scContent = allScript.get(i).html().trim(); String scContent = allScript.get(i).html().trim();
if (scContent.startsWith("var player_")) { // 取直链 if (scContent.startsWith("var player_aaaa")) { // 取直链
int start = scContent.indexOf('{'); int start = scContent.indexOf('{');
int end = scContent.lastIndexOf('}') + 1; int end = scContent.lastIndexOf('}') + 1;
String json = scContent.substring(start, end); String json = scContent.substring(start, end);