天意cookie
This commit is contained in:
parent
e3906cc815
commit
25dbd27802
|
|
@ -204,7 +204,7 @@ public class TianyiApi {
|
||||||
Map<String, String> header = getHeaders();
|
Map<String, String> header = getHeaders();
|
||||||
header.remove("Host");
|
header.remove("Host");
|
||||||
header.remove("Content-Type");
|
header.remove("Content-Type");
|
||||||
return Result.get().url(playUrl).header(header).string();
|
return Result.get().url(ProxyVideo.buildCommonProxyUrl(playUrl, header)).octet().header(header).string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -487,9 +487,9 @@ public class TianyiApi {
|
||||||
|
|
||||||
if (res.get("normal") != null) {
|
if (res.get("normal") != null) {
|
||||||
String normal = res.get("normal").getAsJsonObject().get("url").getAsString();
|
String normal = res.get("normal").getAsJsonObject().get("url").getAsString();
|
||||||
String downloadUrl = OkHttp.getLocation(normal, headers);
|
//String downloadUrl = OkHttp.getLocation(normal, headers);
|
||||||
SpiderDebug.log("获取天翼下载地址成功:" + downloadUrl);
|
SpiderDebug.log("获取天翼下载地址成功:" + normal);
|
||||||
return downloadUrl;
|
return normal;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
SpiderDebug.log("获取下载地址失败:" + result.getBody());
|
SpiderDebug.log("获取下载地址失败:" + result.getBody());
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
6c1b44bc2a12d09ffd892d1826acda91
|
ad4dde93c058ab72900a0066aa6855c3
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/tianyidev/jar/custom_spider.jar;md5;6c1b44bc2a12d09ffd892d1826acda91",
|
"spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/tianyidev/jar/custom_spider.jar;md5;ad4dde93c058ab72900a0066aa6855c3",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "电视直播",
|
"name": "电视直播",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue