天意cookie

This commit is contained in:
lushunming 2025-03-21 15:16:20 +08:00
parent e3906cc815
commit 25dbd27802
4 changed files with 6 additions and 6 deletions

View File

@ -204,7 +204,7 @@ public class TianyiApi {
Map<String, String> header = getHeaders();
header.remove("Host");
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) {
String normal = res.get("normal").getAsJsonObject().get("url").getAsString();
String downloadUrl = OkHttp.getLocation(normal, headers);
SpiderDebug.log("获取天翼下载地址成功:" + downloadUrl);
return downloadUrl;
//String downloadUrl = OkHttp.getLocation(normal, headers);
SpiderDebug.log("获取天翼下载地址成功:" + normal);
return normal;
}
} else {
SpiderDebug.log("获取下载地址失败:" + result.getBody());

Binary file not shown.

View File

@ -1 +1 @@
6c1b44bc2a12d09ffd892d1826acda91
ad4dde93c058ab72900a0066aa6855c3

View File

@ -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": [
{
"name": "电视直播",