Update Lib.java

This commit is contained in:
gzlinz2
2022-10-23 08:09:24 +08:00
committed by GitHub
parent fe6e3d6c14
commit b7444dcc01
@@ -419,7 +419,8 @@ public class Lib extends Spider {
if (player.getString("from").contains("LINE")) { if (player.getString("from").contains("LINE")) {
String videoUrl = pCfg.getString("pu") + player.getString("url"); String videoUrl = pCfg.getString("pu") + player.getString("url");
Document docs = Jsoup.parse(OkHttpUtil.string(videoUrl, Headers())); Document docs = Jsoup.parse(OkHttpUtil.string(videoUrl, Headers()));
Pattern pattern = Pattern.compile("(?<=urls\\s=\\s').*?(?=')"); Pattern pattern = Pattern.compile("(?<=urls\\s=\\s\').*?(?=\')"
);
Elements allScripts = docs.select("body script"); Elements allScripts = docs.select("body script");
for (int j = 0; j < allScripts.size(); j++) { for (int j = 0; j < allScripts.size(); j++) {
String scContents = allScripts.get(j).html().trim(); String scContents = allScripts.get(j).html().trim();