mirror of
https://github.com/bizhangjie/CatVodSpider.git
synced 2026-11-01 09:14:10 +00:00
'更新可用状态'
This commit is contained in:
1 parent
c0469fc8f3
commit
cc1e79393c
4 files changed
+3
-12
No files matched your search
@@ -163,16 +163,7 @@ public class XMVideo extends Spider {
|
||||
|
||||
@Override
|
||||
public String playerContent(String flag, String id, List<String> vipFlags) throws Exception {
|
||||
String target = playUrl.concat(id);
|
||||
Document doc = Jsoup.parse(OkHttp.string(target));
|
||||
String regex = "\"url\\\":\\\"(.*?)\\\",\\\"url_next\\\":";
|
||||
|
||||
Pattern pattern = Pattern.compile(regex);
|
||||
Matcher matcher = pattern.matcher(doc.html());
|
||||
String url = "";
|
||||
if (matcher.find()) {
|
||||
url = URLDecoder.decode(matcher.group(1), "UTF-8").split("&")[0];
|
||||
}
|
||||
String url = id;
|
||||
return Result.get().url(url).header(getHeaders()).string();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
625c69bcb0c11d2a338df0f20d05a804
|
||||
489b16c0ecda7987365cddd6b4d94fb2
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"spider": "https://mirror.ghproxy.com/https://github.com/bizhangjie/CatVodSpider/blob/main/jar/custom_spider.jar;md5;625c69bcb0c11d2a338df0f20d05a804",
|
||||
"spider": "https://mirror.ghproxy.com/https://github.com/bizhangjie/CatVodSpider/blob/main/jar/custom_spider.jar;md5;489b16c0ecda7987365cddd6b4d94fb2",
|
||||
"lives": [
|
||||
{
|
||||
"name": "直播ipv6",
|
||||
|
||||
Reference in new issue
Block a user