Update
This commit is contained in:
parent
fe998b102c
commit
c4fd9ff776
|
|
@ -449,15 +449,11 @@ public class AliYun {
|
|||
}
|
||||
|
||||
private String proxyVideoUrl(String cate, String shareId, String fileId) {
|
||||
String aliUrl = String.format(Proxy.getUrl() + "?do=ali&type=video&cate=%s&shareId=%s&fileId=%s", cate, shareId, fileId);
|
||||
int thread = 1;
|
||||
if ("open".equals(cate)) {
|
||||
thread = 10;
|
||||
} else if ("share".equals(cate)) {
|
||||
thread = 10;
|
||||
}
|
||||
if (thread == 1) return aliUrl;
|
||||
return ProxyVideo.url(aliUrl, thread);
|
||||
String url = String.format(Proxy.getUrl() + "?do=ali&type=video&cate=%s&shareId=%s&fileId=%s", cate, shareId, fileId);
|
||||
if ("open".equals(cate)) thread = 10;
|
||||
if ("share".equals(cate)) thread = 10;
|
||||
return thread == 1 ? url : ProxyVideo.url(url, thread);
|
||||
}
|
||||
|
||||
private String proxyVideoUrl(String cate, String shareId, String fileId, String templateId) {
|
||||
|
|
|
|||
|
|
@ -19,10 +19,9 @@ public class ProxyVideo {
|
|||
|
||||
private static final String GO_SERVER = "http://127.0.0.1:7777/";
|
||||
|
||||
public static boolean go() {
|
||||
public static void go() {
|
||||
if (OkHttp.string(GO_SERVER).isEmpty()) OkHttp.string("http://127.0.0.1:" + Proxy.getPort() + "/go");
|
||||
while (OkHttp.string(GO_SERVER).isEmpty()) SystemClock.sleep(20);
|
||||
return true;
|
||||
}
|
||||
|
||||
public static String url(String url, int thread) {
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
430c09fd9d279d1b5d1fdebbae7e1d67
|
||||
5d1ab45ff233a49e9bc9b9a1554b38a9
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://fm.t4tv.hz.cz/jar/custom_spider.jar;md5;430c09fd9d279d1b5d1fdebbae7e1d67",
|
||||
"spider": "https://fm.t4tv.hz.cz/jar/custom_spider.jar;md5;5d1ab45ff233a49e9bc9b9a1554b38a9",
|
||||
"wallpaper": "https://gao.chuqiuyu.workers.dev",
|
||||
"sites": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://fm.t4tv.hz.cz/jar/custom_spider.jar;md5;430c09fd9d279d1b5d1fdebbae7e1d67",
|
||||
"spider": "https://fm.t4tv.hz.cz/jar/custom_spider.jar;md5;5d1ab45ff233a49e9bc9b9a1554b38a9",
|
||||
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
||||
"sites": [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue