add - douban yiso1100
This commit is contained in:
@@ -122,10 +122,14 @@ public class XBiubiu extends Spider {
|
|||||||
ArrayList<String> li = null;
|
ArrayList<String> li = null;
|
||||||
JSONArray videos = new JSONArray();
|
JSONArray videos = new JSONArray();
|
||||||
ArrayList<String> jiequContents = subContent(parseContent, jiequshuzuqian, jiequshuzuhou);
|
ArrayList<String> jiequContents = subContent(parseContent, jiequshuzuqian, jiequshuzuhou);
|
||||||
|
String sousuohouzhui = getRuleVal("sousuohouzhui");
|
||||||
|
String lianjieqian = getRuleVal("lianjieqian");
|
||||||
|
String lianjiehou = getRuleVal("lianjiehou");
|
||||||
|
String link = null;
|
||||||
for (int i = 0; i < jiequContents.size(); i++) {
|
for (int i = 0; i < jiequContents.size(); i++) {
|
||||||
try {
|
try {
|
||||||
String jiequContent = jiequContents.get(i);
|
String jiequContent = jiequContents.get(i);
|
||||||
String title = removeHtml(subContent(jiequContent, getRuleVal("biaotiqian"), getRuleVal("biaotihou")).get(0));
|
String title = removeHtml(subContent(jiequContent, "html\" >", getRuleVal("biaotihou")).get(0));
|
||||||
String pic = "";
|
String pic = "";
|
||||||
String tupianqian = getRuleVal("tupianqian").toLowerCase();
|
String tupianqian = getRuleVal("tupianqian").toLowerCase();
|
||||||
if (tupianqian.startsWith("http://") || tupianqian.startsWith("https://")) {
|
if (tupianqian.startsWith("http://") || tupianqian.startsWith("https://")) {
|
||||||
@@ -137,8 +141,10 @@ public class XBiubiu extends Spider {
|
|||||||
pic = Misc.fixUrl(webUrl, pic);
|
pic = Misc.fixUrl(webUrl, pic);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String link = subContent(jiequContent, getRuleVal("lianjieqian"), getRuleVal("lianjiehou")).get(0);
|
if(!lianjiehou.equals("")) {
|
||||||
link = getRuleVal("ljqianzhui").isEmpty() ? (link + getRuleVal("ljhouzhui")) : ("x:" + getRuleVal("ljqianzhui")) + link + getRuleVal("ljhouzhui");
|
link = subContent(jiequContent, lianjieqian, lianjiehou).get(0);
|
||||||
|
link = getRuleVal("ljqianzhui").isEmpty() ? (link + getRuleVal("ljhouzhui")) : ("x:" + getRuleVal("ljqianzhui")) + link + getRuleVal("ljhouzhui");
|
||||||
|
} else link = jiequContent.replaceAll(".*\"(.*"+sousuohouzhui+".*?)\".*","$1");
|
||||||
String remark = !getRuleVal("fubiaotiqian").isEmpty() && !getRuleVal("fubiaotihou").isEmpty() ?
|
String remark = !getRuleVal("fubiaotiqian").isEmpty() && !getRuleVal("fubiaotihou").isEmpty() ?
|
||||||
removeHtml(subContent(jiequContent, getRuleVal("fubiaotiqian"), getRuleVal("fubiaotihou")).get(0)) : "";
|
removeHtml(subContent(jiequContent, getRuleVal("fubiaotiqian"), getRuleVal("fubiaotihou")).get(0)) : "";
|
||||||
JSONObject v = new JSONObject();
|
JSONObject v = new JSONObject();
|
||||||
@@ -163,6 +169,7 @@ public class XBiubiu extends Spider {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String removeUnicode(String str) {
|
private static String removeUnicode(String str) {
|
||||||
Pattern pattern = Pattern.compile("(\\\\u(\\w{4}))");
|
Pattern pattern = Pattern.compile("(\\\\u(\\w{4}))");
|
||||||
Matcher matcher = pattern.matcher(str);
|
Matcher matcher = pattern.matcher(str);
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ public class Yiso extends Spider {
|
|||||||
@Override
|
@Override
|
||||||
public String searchContent(String key, boolean quick) {
|
public String searchContent(String key, boolean quick) {
|
||||||
try {
|
try {
|
||||||
PushAgent.getRefreshTk();
|
|
||||||
HashMap<String, String> LT = sHeaders();
|
HashMap<String, String> LT = sHeaders();
|
||||||
String url = "https://yiso.fun/api/search?name=" + URLEncoder.encode(key) + "&from=ali";
|
String url = "https://yiso.fun/api/search?name=" + URLEncoder.encode(key) + "&from=ali";
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class Misc {
|
|||||||
public static PushAgent pushAgent = null;
|
public static PushAgent pushAgent = null;
|
||||||
public static Integer type=1;
|
public static Integer type=1;
|
||||||
public static String btype="N";
|
public static String btype="N";
|
||||||
public static boolean rflag = true;
|
public static boolean rflag = false;
|
||||||
public static String apikey = "0ac44ae016490db2204ce0a042db2916";
|
public static String apikey = "0ac44ae016490db2204ce0a042db2916";
|
||||||
public static boolean isVip(String url) {
|
public static boolean isVip(String url) {
|
||||||
// 适配2.0.6的调用应用内解析列表的支持, 需要配合直连分析一起使用,参考cjt影视和极品直连
|
// 适配2.0.6的调用应用内解析列表的支持, 需要配合直连分析一起使用,参考cjt影视和极品直连
|
||||||
|
|||||||
Reference in New Issue
Block a user