This commit is contained in:
唐三 2023-09-28 21:08:27 +08:00
parent e4b8cea3da
commit 614a69d169
3 changed files with 9 additions and 5 deletions

View File

@ -9,6 +9,7 @@ import com.github.catvod.bean.Vod;
import com.github.catvod.crawler.Spider;
import com.github.catvod.net.OkHttp;
import com.github.catvod.utils.Utils;
import com.whl.quickjs.android.QuickJSLoader;
import com.whl.quickjs.wrapper.QuickJSContext;
import org.json.JSONObject;
@ -108,13 +109,16 @@ public class Miss extends Spider {
} else {
return Result.get().parse().url(url + id).string();
}
List<String> url = new ArrayList<>();
List<String> playUrl = new ArrayList<>();
for (Iterator<String> it = js.keys(); it.hasNext();) {
String key = it.next();
url.add(key);
url.add(js.getString(key));
playUrl.add(key);
playUrl.add(js.getString(key));
}
return Result.get().url(url).string();
Map<String, String> headers = new HashMap<>();
headers.put("User-Agent", Utils.CHROME);
headers.put("Referer", url + id);
return Result.get().url(playUrl).header(headers).string();
}
private String searchContent(String key, String pg) {

Binary file not shown.

View File

@ -1 +1 @@
f9f193baa3c745de189031c8204071b3
4f90ef7818edacb249076f30238d4305