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) {
|
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;
|
int thread = 1;
|
||||||
if ("open".equals(cate)) {
|
String url = String.format(Proxy.getUrl() + "?do=ali&type=video&cate=%s&shareId=%s&fileId=%s", cate, shareId, fileId);
|
||||||
thread = 10;
|
if ("open".equals(cate)) thread = 10;
|
||||||
} else if ("share".equals(cate)) {
|
if ("share".equals(cate)) thread = 10;
|
||||||
thread = 10;
|
return thread == 1 ? url : ProxyVideo.url(url, thread);
|
||||||
}
|
|
||||||
if (thread == 1) return aliUrl;
|
|
||||||
return ProxyVideo.url(aliUrl, thread);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String proxyVideoUrl(String cate, String shareId, String fileId, String templateId) {
|
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/";
|
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");
|
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);
|
while (OkHttp.string(GO_SERVER).isEmpty()) SystemClock.sleep(20);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String url(String url, int thread) {
|
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",
|
"wallpaper": "https://gao.chuqiuyu.workers.dev",
|
||||||
"sites": [
|
"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",
|
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue