多线程测试
This commit is contained in:
parent
459038157d
commit
396379e571
|
|
@ -80,9 +80,11 @@ public class ProxyVideo {
|
||||||
public static Object[] proxyMultiThread(String url, Map<String, String> headers) throws Exception {
|
public static Object[] proxyMultiThread(String url, Map<String, String> headers) throws Exception {
|
||||||
|
|
||||||
String range = headers.get("Range");
|
String range = headers.get("Range");
|
||||||
|
SpiderDebug.log("---proxyMultiThread,Range:" + range);
|
||||||
Range rangeObj = parseRange(range);
|
Range rangeObj = parseRange(range);
|
||||||
//没有range,无需分割
|
//没有range,无需分割
|
||||||
if (rangeObj == null) {
|
if (rangeObj == null) {
|
||||||
|
SpiderDebug.log("没有range,无需分割");
|
||||||
return proxy(url, headers);
|
return proxy(url, headers);
|
||||||
} else {
|
} else {
|
||||||
//end 为空,测试请求
|
//end 为空,测试请求
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
e815d386e2777a1c728d0133698de99a
|
7d84170367f99236c044f3a977720cc9
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/refs/heads/multiThread/jar/custom_spider.jar;md5;e815d386e2777a1c728d0133698de99a",
|
"spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/refs/heads/multiThread/jar/custom_spider.jar;md5;7d84170367f99236c044f3a977720cc9",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "电视直播",
|
"name": "电视直播",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue