Fix bug
This commit is contained in:
parent
bac14d24e8
commit
e22068f2bf
|
|
@ -93,6 +93,7 @@ public class AliYun {
|
||||||
m3u8MediaMap = new HashMap<>();
|
m3u8MediaMap = new HashMap<>();
|
||||||
shareDownloadMap = new HashMap<>();
|
shareDownloadMap = new HashMap<>();
|
||||||
cache = Cache.objectFrom(Path.read(getCache()));
|
cache = Cache.objectFrom(Path.read(getCache()));
|
||||||
|
OkHttp.string("http://127.0.0.1:" + Proxy.getPort() + "/go");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRefreshToken(String token) {
|
public void setRefreshToken(String token) {
|
||||||
|
|
@ -516,7 +517,6 @@ public class AliYun {
|
||||||
if (thread == 1) {
|
if (thread == 1) {
|
||||||
return new Object[]{ProxyVideo.proxy(downloadUrl, headers)};
|
return new Object[]{ProxyVideo.proxy(downloadUrl, headers)};
|
||||||
} else {
|
} else {
|
||||||
OkHttp.newCall("http://127.0.0.1:" + Proxy.getPort() + "/go?action=start").close();
|
|
||||||
return new Object[]{ProxyVideo.multi(downloadUrl, headers, thread)};
|
return new Object[]{ProxyVideo.multi(downloadUrl, headers, thread)};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,11 +41,12 @@ public class Proxy extends Spider {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getPort() {
|
public static int getPort() {
|
||||||
|
adjustPort();
|
||||||
return port;
|
return port;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getUrl() {
|
public static String getUrl() {
|
||||||
adjustPort();
|
adjustPort();
|
||||||
return "http://127.0.0.1:" + getPort() + "/proxy";
|
return "http://127.0.0.1:" + port + "/proxy";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
db7cd9a0224413b3128409ed0f057405
|
5b3460279d173de4e0288eb56fac596f
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue