pull/69/head
FongMi 2 years ago
parent 81cd336eac
commit 1c82143067
  1. 4
      app/src/main/java/com/github/catvod/api/AliYun.java
  2. 7
      app/src/main/java/com/github/catvod/utils/MultiThread.java

@ -479,11 +479,11 @@ public class AliYun {
}
if ("open".equals(cate)) {
thread = 10;
downloadUrl = getDownloadUrl(shareId, fileId);
thread = 30;
} else if ("share".equals(cate)) {
thread = 10;
downloadUrl = getShareDownloadUrl(shareId, fileId);
thread = 30;
} else if ("m3u8".equals(cate)) {
lock.lock();
String mediaUrl = m3u8MediaMap.get(fileId).get(mediaId);

@ -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"));

Loading…
Cancel
Save