diff --git a/app/src/main/java/com/github/catvod/api/UCApi.java b/app/src/main/java/com/github/catvod/api/UCApi.java index cafa6305..16612d35 100644 --- a/app/src/main/java/com/github/catvod/api/UCApi.java +++ b/app/src/main/java/com/github/catvod/api/UCApi.java @@ -229,7 +229,9 @@ public class UCApi { //UCTV 可以直接播放,不需要代理 if (testVideo(playUrl)) { - return Result.get().url(playUrl).octet().header(header).string(); + SpiderDebug.log("UCTV 可以直接播放,不需要代理" ); + + return Result.get().url(playUrl).string(); } return Result.get().url(proxyVideoUrl(playUrl, header)).octet().header(header).string(); } diff --git a/app/src/test/java/com/github/catvod/api/QuarkApiTest.java b/app/src/test/java/com/github/catvod/api/QuarkApiTest.java index af24852b..c4c7ee3a 100644 --- a/app/src/test/java/com/github/catvod/api/QuarkApiTest.java +++ b/app/src/test/java/com/github/catvod/api/QuarkApiTest.java @@ -32,10 +32,8 @@ public class QuarkApiTest { public void testdownload() throws Exception { String url = "https://video-play-p-zb.cdn.yun.cn/P7r95SEr/1997440970/7986fbd7419840ba83d70e7ec36f933867d2fadf/67d2fadf98f5dd83fcd64481858236a79b4c3384?auth_key=1741952223-3304496-16098-d233ccbc65c0321102d36db56f3db9c2&sp=642&token=3-08917a23ee79367eab5e9dcfbd898751-3-2-963-5cbf_3bd039d6d54ec6a8737515d6f20a488c-0-0-0-0-e9fc047ff0aa9b590be130819e1e82f2&ud=9-0-1-2-1-5-8-N-0-4-0-N"; - OkResult okResult1 = OkHttp.get(url, new HashMap<>(), Map.of("Range","bytes=0-0")); - if (okResult1.getCode() == 200) { - - } + OkResult okResult1 = OkHttp.get(url, new HashMap<>(), Map.of("Range", "bytes=0-0")); + assert okResult1.getCode() == 206; } diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index 56067074..9a9327e4 100644 Binary files a/jar/custom_spider.jar and b/jar/custom_spider.jar differ diff --git a/jar/custom_spider.jar.md5 b/jar/custom_spider.jar.md5 index d0d067c6..23915b70 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -a7d20a774661b18abb93ca0c7106b7b3 +1ea1c432790a89e507efefc8afb7f41b diff --git a/json/index.json b/json/index.json index ba2eef6b..2c5419e1 100644 --- a/json/index.json +++ b/json/index.json @@ -1,5 +1,5 @@ { - "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;a7d20a774661b18abb93ca0c7106b7b3", + "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;1ea1c432790a89e507efefc8afb7f41b", "lives": [ { diff --git a/json/index1.json b/json/index1.json index 8eec57b0..77756953 100644 --- a/json/index1.json +++ b/json/index1.json @@ -1,5 +1,5 @@ { - "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;a7d20a774661b18abb93ca0c7106b7b3", + "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;1ea1c432790a89e507efefc8afb7f41b", "lives": [ { "name": "直播ipv6", diff --git a/json/index2.json b/json/index2.json index 3875255b..99f794cc 100644 --- a/json/index2.json +++ b/json/index2.json @@ -1,5 +1,5 @@ { - "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;a7d20a774661b18abb93ca0c7106b7b3", + "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;1ea1c432790a89e507efefc8afb7f41b", "lives": [ { "name": "直播ipv6", diff --git a/json/test.json b/json/test.json index 8c0a5861..787efee3 100644 --- a/json/test.json +++ b/json/test.json @@ -1,5 +1,5 @@ { - "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;a7d20a774661b18abb93ca0c7106b7b3", + "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;1ea1c432790a89e507efefc8afb7f41b", "lives": [ { "name": "直播",