Clean code

This commit is contained in:
FongMi 2023-10-28 12:03:05 +08:00
parent e6715ef693
commit fb7eab9394
5 changed files with 7 additions and 6 deletions

View File

@ -186,18 +186,19 @@ public class Xb6v extends Spider {
.replaceAll("&", "") .replaceAll("&", "")
.replaceAll("middot;", "") .replaceAll("middot;", "")
.replaceAll("     ", ",") .replaceAll("     ", ",")
.replaceAll("      ", ","); .replaceAll("      ", ",")
.replaceAll(" ", "");
} }
private String getDescription(Pattern pattern, String str) { private String getDescription(Pattern pattern, String str) {
return getStrByRegex(pattern, str) return getStrByRegex(pattern, str)
.replaceAll("</?[^>]+>", "") .replaceAll("</?[^>]+>", "")
.replaceAll("\n", "") .replaceAll("\n", "")
.replaceAll("    ", "")
.replaceAll("&amp;", "") .replaceAll("&amp;", "")
.replaceAll("middot;", "") .replaceAll("middot;", "")
.replaceAll("ldquo;", "") .replaceAll("ldquo;", "")
.replaceAll("rdquo;", ""); .replaceAll("rdquo;", "")
.replaceAll(" ", "");
} }
@Override @Override

Binary file not shown.

View File

@ -1 +1 @@
a4a22ad4042d5ff3444ed4b66f41a3a4 aa238f375f2bb1161db6d60835f44692

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;a4a22ad4042d5ff3444ed4b66f41a3a4", "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;aa238f375f2bb1161db6d60835f44692",
"wallpaper": "https://gao.chuqiuyu.tk", "wallpaper": "https://gao.chuqiuyu.tk",
"sites": [ "sites": [
{ {

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;a4a22ad4042d5ff3444ed4b66f41a3a4", "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;aa238f375f2bb1161db6d60835f44692",
"wallpaper": "http://饭太硬.top/深色壁纸/api.php", "wallpaper": "http://饭太硬.top/深色壁纸/api.php",
"sites": [ "sites": [
{ {