Update Kanqiu.java

pull/77/head
FongMi 2 years ago
parent e9d07b2e68
commit 350ce892e3
  1. 4
      app/src/main/java/com/github/catvod/spider/Kanqiu.java

@ -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…
Cancel
Save