|
|
|
|
@ -1,8 +1,5 @@ |
|
|
|
|
package com.github.catvod.utils; |
|
|
|
|
|
|
|
|
|
import com.github.catvod.spider.Proxy; |
|
|
|
|
|
|
|
|
|
import java.net.URLEncoder; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.TreeMap; |
|
|
|
|
|
|
|
|
|
@ -10,10 +7,6 @@ import fi.iki.elonen.NanoHTTPD; |
|
|
|
|
|
|
|
|
|
public class MultiThread { |
|
|
|
|
|
|
|
|
|
public static String url(String url, int thread) { |
|
|
|
|
return String.format(Proxy.getUrl() + "?do=multi&url=%s&thread=%d", URLEncoder.encode(url), thread); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Object[] proxy(Map<String, String> params) throws Exception { |
|
|
|
|
String url = params.get("url"); |
|
|
|
|
int thread = Integer.parseInt(params.get("thread")); |
|
|
|
|
|