Clean code
This commit is contained in:
parent
60668aae52
commit
17145575f8
|
|
@ -59,10 +59,7 @@ public class Jianpian extends Spider {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String categoryContent(String tid, String pg, boolean filter, HashMap<String, String> extend) throws Exception {
|
public String categoryContent(String tid, String pg, boolean filter, HashMap<String, String> extend) throws Exception {
|
||||||
if (tid.endsWith("/{pg}")) {
|
if (tid.endsWith("/{pg}")) return searchContent(tid.split("/")[0], pg);
|
||||||
String[] splits = tid.split("/");
|
|
||||||
return searchContent(splits[0], pg);
|
|
||||||
} else {
|
|
||||||
List<Vod> list = new ArrayList<>();
|
List<Vod> list = new ArrayList<>();
|
||||||
HashMap<String, String> ext = new HashMap<>();
|
HashMap<String, String> ext = new HashMap<>();
|
||||||
if (extend != null && extend.size() > 0) ext.putAll(extend);
|
if (extend != null && extend.size() > 0) ext.putAll(extend);
|
||||||
|
|
@ -75,7 +72,6 @@ public class Jianpian extends Spider {
|
||||||
for (Data data : resp.getData()) list.add(data.vod());
|
for (Data data : resp.getData()) list.add(data.vod());
|
||||||
return Result.string(list);
|
return Result.string(list);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String detailContent(List<String> ids) throws Exception {
|
public String detailContent(List<String> ids) throws Exception {
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
440a3457a41af7c5800d6b5c7e8ef350
|
f4bb4cabaaac07b29a5b1a705a76ce33
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;440a3457a41af7c5800d6b5c7e8ef350",
|
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;f4bb4cabaaac07b29a5b1a705a76ce33",
|
||||||
"wallpaper": "https://gao.chuqiuyu.tk",
|
"wallpaper": "https://gao.chuqiuyu.tk",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;440a3457a41af7c5800d6b5c7e8ef350",
|
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;f4bb4cabaaac07b29a5b1a705a76ce33",
|
||||||
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue