quark 播放bug
This commit is contained in:
parent
d182391299
commit
2bcf5cb0a7
|
|
@ -59,7 +59,7 @@ public class QuarkApi {
|
||||||
String url = Util.base64Decode(params.get("url"));
|
String url = Util.base64Decode(params.get("url"));
|
||||||
Map header = new Gson().fromJson(Util.base64Decode(params.get("header")), Map.class);
|
Map header = new Gson().fromJson(Util.base64Decode(params.get("header")), Map.class);
|
||||||
if (header == null) header = new HashMap<>();
|
if (header == null) header = new HashMap<>();
|
||||||
List<String> arr = List.of("Accept", "Accept-Encoding", "Accept-Language", "Cookie", "Origin", "Referer", "Sec-Ch-Ua", "Sec-Ch-Ua-Mobile", "Sec-Ch-Ua-Platform", "Sec-Fetch-Dest", "Sec-Fetch-Mode", "Sec-Fetch-Site", "User-Agent");
|
List<String> arr = List.of("Range","Accept", "Accept-Encoding", "Accept-Language", "Cookie", "Origin", "Referer", "Sec-Ch-Ua", "Sec-Ch-Ua-Mobile", "Sec-Ch-Ua-Platform", "Sec-Fetch-Dest", "Sec-Fetch-Mode", "Sec-Fetch-Site", "User-Agent");
|
||||||
for (String key : params.keySet()) {
|
for (String key : params.keySet()) {
|
||||||
for (String s : arr) {
|
for (String s : arr) {
|
||||||
if (s.toLowerCase().equals(key)) {
|
if (s.toLowerCase().equals(key)) {
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ public class ProxyVideo {
|
||||||
SpiderDebug.log("++proxy res contentType:" + contentType);
|
SpiderDebug.log("++proxy res contentType:" + contentType);
|
||||||
// SpiderDebug.log("++proxy res body:" + response.body());
|
// SpiderDebug.log("++proxy res body:" + response.body());
|
||||||
SpiderDebug.log("++proxy res respHeaders:" + Json.toJson(respHeaders));
|
SpiderDebug.log("++proxy res respHeaders:" + Json.toJson(respHeaders));
|
||||||
return new Object[]{response.code(), contentType, response.body().byteStream(), respHeaders};
|
return new Object[]{206, contentType, response.body().byteStream(), respHeaders};
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String getMimeType(String contentDisposition) {
|
private static String getMimeType(String contentDisposition) {
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ 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/86527.html"));
|
String content = spider.detailContent(Arrays.asList("/voddetail/86829.html"));
|
||||||
System.out.println("detailContent--" + content);
|
System.out.println("detailContent--" + content);
|
||||||
|
|
||||||
JsonObject map = Json.safeObject(content);
|
JsonObject map = Json.safeObject(content);
|
||||||
|
|
@ -77,7 +77,7 @@ public class WoggTest {
|
||||||
|
|
||||||
@org.junit.Test
|
@org.junit.Test
|
||||||
public void playerContent() throws Exception {
|
public void playerContent() throws Exception {
|
||||||
String content = spider.playerContent("quark4K", "c3f6b5fa48234c53909c65a4ff0f1888++f5fdf4f5e43aaef4db028cac23f20739++38c5e16d71f7++Yh7f4+dwB7CRa/HMcWOy0crfVjI6Yo8wtfuUwcnop3A=", new ArrayList<>());
|
String content = spider.playerContent("quark4K", "81c9aa49887d4b07aba861d7dd76d0ac++0ec2d75805f83bd045434f0d22f71489++4be1d75e17aa++wGlrbmw95nBbzO2rbCcEicZ8f4a+z5aKiuyoLQLA5SQ=", new ArrayList<>());
|
||||||
System.out.println("playerContent--" + content);
|
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();
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
a8cac0161a9bd2bb2754e34292c86ad5
|
672f859b8caf636064f3aad14b481021
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;a8cac0161a9bd2bb2754e34292c86ad5",
|
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;672f859b8caf636064f3aad14b481021",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;a8cac0161a9bd2bb2754e34292c86ad5",
|
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;672f859b8caf636064f3aad14b481021",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;a8cac0161a9bd2bb2754e34292c86ad5",
|
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;672f859b8caf636064f3aad14b481021",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue