Ncat修复
This commit is contained in:
parent
25e5abd622
commit
c23db5fa16
|
|
@ -50,7 +50,7 @@ public class NCat extends Spider {
|
||||||
try {
|
try {
|
||||||
String pic = element.select("img").last().attr("data-original");
|
String pic = element.select("img").last().attr("data-original");
|
||||||
String url = element.select("a").attr("href");
|
String url = element.select("a").attr("href");
|
||||||
String name = element.select("img").attr("title");
|
String name = element.select(".v-item-title").text().replace("可可影视-kekys.com", "");
|
||||||
if (!pic.startsWith("http")) {
|
if (!pic.startsWith("http")) {
|
||||||
pic = picUrl + pic;
|
pic = picUrl + pic;
|
||||||
}
|
}
|
||||||
|
|
@ -72,7 +72,7 @@ public class NCat extends Spider {
|
||||||
try {
|
try {
|
||||||
String pic = element.select("img").last().attr("data-original");
|
String pic = element.select("img").last().attr("data-original");
|
||||||
String url = element.select("a").attr("href");
|
String url = element.select("a").attr("href");
|
||||||
String name = element.select("img").attr("title");
|
String name = element.select(".v-item-title").text().replace("可可影视-kekys.com", "");
|
||||||
if (!pic.startsWith("http")) {
|
if (!pic.startsWith("http")) {
|
||||||
pic = picUrl + pic;
|
pic = picUrl + pic;
|
||||||
}
|
}
|
||||||
|
|
@ -142,7 +142,7 @@ public class NCat extends Spider {
|
||||||
try {
|
try {
|
||||||
String pic = element.select("img").attr("data-original");
|
String pic = element.select("img").attr("data-original");
|
||||||
String url = element.attr("href");
|
String url = element.attr("href");
|
||||||
String name = element.select("img").attr("title");
|
String name = element.select(".v-item-title").text().replace("可可影视-kekys.com", "");
|
||||||
if (!pic.startsWith("http")) {
|
if (!pic.startsWith("http")) {
|
||||||
pic = picUrl + pic;
|
pic = picUrl + pic;
|
||||||
}
|
}
|
||||||
|
|
@ -168,7 +168,7 @@ public class NCat extends Spider {
|
||||||
Matcher playSourceMatcher = playSourcePattern.matcher(doc.html());
|
Matcher playSourceMatcher = playSourcePattern.matcher(doc.html());
|
||||||
//playSourceMatcher.find();
|
//playSourceMatcher.find();
|
||||||
String srcUrl = Util.findByRegex("https?://[^\\s/$.?#].+\\.m3u8", doc.html(), 0);
|
String srcUrl = Util.findByRegex("https?://[^\\s/$.?#].+\\.m3u8", doc.html(), 0);
|
||||||
if(StringUtils.isNoneBlank(srcUrl)){
|
if (StringUtils.isNoneBlank(srcUrl)) {
|
||||||
return Result.get().url(srcUrl).header(getHeaders()).string();
|
return Result.get().url(srcUrl).header(getHeaders()).string();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
0980b0c660780f15ebefa9226fd43f7c
|
bd14df34273fe3ac90f267b8f49759be
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;0980b0c660780f15ebefa9226fd43f7c",
|
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;bd14df34273fe3ac90f267b8f49759be",
|
||||||
"lives": [
|
"lives": [
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;0980b0c660780f15ebefa9226fd43f7c",
|
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;bd14df34273fe3ac90f267b8f49759be",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;0980b0c660780f15ebefa9226fd43f7c",
|
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;bd14df34273fe3ac90f267b8f49759be",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;0980b0c660780f15ebefa9226fd43f7c",
|
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;bd14df34273fe3ac90f267b8f49759be",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播",
|
"name": "直播",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue