miss
This commit is contained in:
parent
e4b8cea3da
commit
614a69d169
|
|
@ -9,6 +9,7 @@ import com.github.catvod.bean.Vod;
|
||||||
import com.github.catvod.crawler.Spider;
|
import com.github.catvod.crawler.Spider;
|
||||||
import com.github.catvod.net.OkHttp;
|
import com.github.catvod.net.OkHttp;
|
||||||
|
|
||||||
|
import com.github.catvod.utils.Utils;
|
||||||
import com.whl.quickjs.android.QuickJSLoader;
|
import com.whl.quickjs.android.QuickJSLoader;
|
||||||
import com.whl.quickjs.wrapper.QuickJSContext;
|
import com.whl.quickjs.wrapper.QuickJSContext;
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
|
|
@ -108,13 +109,16 @@ public class Miss extends Spider {
|
||||||
} else {
|
} else {
|
||||||
return Result.get().parse().url(url + id).string();
|
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();) {
|
for (Iterator<String> it = js.keys(); it.hasNext();) {
|
||||||
String key = it.next();
|
String key = it.next();
|
||||||
url.add(key);
|
playUrl.add(key);
|
||||||
url.add(js.getString(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) {
|
private String searchContent(String key, String pg) {
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
f9f193baa3c745de189031c8204071b3
|
4f90ef7818edacb249076f30238d4305
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue