add - 阿里去掉汉字推送

This commit is contained in:
yangqiang3504
2022-08-22 09:55:12 +08:00
parent 7b5a8816d1
commit 1a7ed71a7b
2 changed files with 7 additions and 1 deletions
@@ -448,6 +448,9 @@ public class PushAgent extends Spider {
public String detailContent(List<String> list) {
try {
String url = list.get(0);
if (url.contains("aliyundrive")&&url.contains("\n")) {
url = url.replace("\n","").replaceAll(".*(https://www.aliyundrive.com/s/\\w+).*", "$1");
}
Pattern pattern = Folder;
Pattern pattern2 = AliPLink;
Matcher matcher2 = pattern2.matcher(url);
@@ -244,7 +244,10 @@ public class XBiubiu extends Spider {
if (!getRuleVal("juqingqian").isEmpty() && !getRuleVal("juqinghou").isEmpty()) {
try {
desc = subContent(html, getRuleVal("juqingqian"), getRuleVal("juqinghou")).get(0);
if(desc!=null)desc = desc.replaceAll(".*>(.*)", "$1");
if(desc!=null){
desc = desc.replace("\t", "");
desc = desc.replaceAll("\\.*>(.*)", "$1");
}
} catch (Exception e) {
SpiderDebug.log(e);
}