夸克盘

This commit is contained in:
lushunming 2024-08-29 10:09:33 +08:00
parent c8ae77e656
commit f547f68c27
8 changed files with 13 additions and 7 deletions

View File

@ -114,6 +114,7 @@ public class QuarkApi {
} }
Map<String, String> header = getHeaders(); Map<String, String> header = getHeaders();
header.remove("Host"); header.remove("Host");
header.remove("Content-Type");
return ProxyVideo.buildCommonProxyUrl(playUrl, header); return ProxyVideo.buildCommonProxyUrl(playUrl, header);
} }

View File

@ -1,5 +1,7 @@
package com.github.catvod.bean.quark; package com.github.catvod.bean.quark;
import com.github.catvod.utils.Util;
import java.util.Map; import java.util.Map;
import java.util.regex.Pattern; import java.util.regex.Pattern;
@ -100,7 +102,7 @@ public class Item {
name = numbers[0]; name = numbers[0];
} }
} }
return name + " " + size; return name + " " + Util.getSize(size);
} }
public String getEpisodeUrl(String type_name) { public String getEpisodeUrl(String type_name) {

View File

@ -67,7 +67,9 @@ public class WoggTest {
@org.junit.Test @org.junit.Test
public void detailContent() throws Exception { public void detailContent() throws Exception {
String content = spider.detailContent(Arrays.asList("/voddetail/85997.html")); String content = spider.detailContent(Arrays.asList("/voddetail/86346.html"));
System.out.println("detailContent--" + content);
JsonObject map = Json.safeObject(content); JsonObject map = Json.safeObject(content);
Gson gson = new GsonBuilder().setPrettyPrinting().create(); Gson gson = new GsonBuilder().setPrettyPrinting().create();
System.out.println("detailContent--" + gson.toJson(map)); System.out.println("detailContent--" + gson.toJson(map));
@ -76,7 +78,8 @@ public class WoggTest {
@org.junit.Test @org.junit.Test
public void playerContent() throws Exception { public void playerContent() throws Exception {
String content = spider.playerContent("quark4K", "dc59b0932afd40d0a22f36000677601e++6f9d159fdc95595863011d419b6e6ff9++564626ac1ea7++cBtIFnirbHfAa6y/su8FxbPHk8mzXfrmSWBnV56+LQo=", new ArrayList<>()); String content = spider.playerContent("quark4K", "c3f6b5fa48234c53909c65a4ff0f1888++14a1d67e74187d2415c81ba04517a63c++38c5e16d71f7++bOf18g/ZQ/P1U6EoNgIjt4vYXxXOeXa+JiKzZdTHFsI=", new ArrayList<>());
System.out.println("playerContent--" + content);
JsonObject map = Json.safeObject(content); JsonObject map = Json.safeObject(content);
Gson gson = new GsonBuilder().setPrettyPrinting().create(); Gson gson = new GsonBuilder().setPrettyPrinting().create();
System.out.println("playerContent--" + gson.toJson(map)); System.out.println("playerContent--" + gson.toJson(map));

Binary file not shown.

View File

@ -1 +1 @@
5c76b15e95eb27a4086e0113f94c4ca7 f9fe580a44e0fa61b2eac049a5b4d124

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;5c76b15e95eb27a4086e0113f94c4ca7", "spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;f9fe580a44e0fa61b2eac049a5b4d124",
"lives": [ "lives": [
{ {
"name": "直播ipv6", "name": "直播ipv6",

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;5c76b15e95eb27a4086e0113f94c4ca7", "spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;f9fe580a44e0fa61b2eac049a5b4d124",
"lives": [ "lives": [
{ {
"name": "直播ipv6", "name": "直播ipv6",

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;5c76b15e95eb27a4086e0113f94c4ca7", "spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;f9fe580a44e0fa61b2eac049a5b4d124",
"lives": [ "lives": [
{ {
"name": "直播ipv6", "name": "直播ipv6",