Update Kanqiu.java
This commit is contained in:
parent
e9d07b2e68
commit
350ce892e3
|
|
@ -56,8 +56,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 + (cateId.isEmpty() ? String.format("%s", cateId) : String.format("/match/%s/live", cateId));
|
||||
Elements lis = Jsoup.parse(OkHttp.string(cateUrl, getHeader())).select(".list-group-item");
|
||||
String urlPath = cateId == null || cateId.isEmpty() ? "" : String.format("/match/%s/live", cateId);
|
||||
Elements lis = Jsoup.parse(OkHttp.string(siteUrl + urlPath, getHeader())).select(".list-group-item");
|
||||
List<Vod> list = new ArrayList<>();
|
||||
for (Element li : lis) {
|
||||
String vid = siteUrl + li.select(".btn.btn-primary").attr("href");
|
||||
|
|
|
|||
Loading…
Reference in New Issue