Clean code
This commit is contained in:
parent
eef2dbae8e
commit
49841f2935
|
|
@ -54,8 +54,8 @@ public class Kanqiu extends Spider {
|
|||
|
||||
@Override
|
||||
public String categoryContent(String tid, String pg, boolean filter, HashMap<String, String> extend) throws Exception {
|
||||
String cateId = extend.get("cateId") == null ? tid : extend.get("cateId");
|
||||
String cateUrl = siteUrl + (TextUtils.isEmpty(cateId) ? String.format("%s", tid) : String.format("/match/%s/live", cateId));
|
||||
String cateId = extend.containsKey("cateId") ? extend.get("cateId") : tid;
|
||||
String cateUrl = siteUrl + String.format("/match/%s/live", cateId);
|
||||
Document doc = Jsoup.parse(OkHttp.string(cateUrl, getHeader()));
|
||||
List<Vod> list = new ArrayList<>();
|
||||
int size = 0;
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
cb 82 9e 5d 84 3e 54 96 f3 19 78 58 04 1d d2 79
|
||||
145b12c8a9a89fcc35c0494c905f2f96
|
||||
|
|
|
|||
Loading…
Reference in New Issue