pull/102/head
FongMi 3 years ago
parent 7343679f9d
commit ea059d2736
  1. 8
      app/src/main/java/com/fongmi/android/tv/bean/Site.java
  2. 36
      catvod/src/main/java/com/github/catvod/crawler/Spider.java

@ -87,10 +87,6 @@ public class Site {
return TextUtils.isEmpty(playerUrl) ? "" : playerUrl;
}
public void setPlayerUrl(String playerUrl) {
this.playerUrl = playerUrl;
}
public Integer getSearchable() {
return searchable;
}
@ -119,10 +115,6 @@ public class Site {
return categories == null ? Collections.emptyList() : categories;
}
public void setCategories(List<String> categories) {
this.categories = categories;
}
public boolean isActivated() {
return activated;
}

@ -2,15 +2,11 @@ package com.github.catvod.crawler;
import android.content.Context;
import org.json.JSONObject;
import java.util.HashMap;
import java.util.List;
public abstract class Spider {
public static JSONObject empty = new JSONObject();
public void init(Context context) {
}
@ -18,59 +14,27 @@ public abstract class Spider {
init(context);
}
/**
* 首頁數據內容
*/
public String homeContent(boolean filter) {
return "";
}
/**
* 首頁最近更新數據 如果上面的homeContent中不包含首頁最近更新視頻的數據 可以使用這個接口返回
*/
public String homeVideoContent() {
return "";
}
/**
* 分類數據
*/
public String categoryContent(String tid, String pg, boolean filter, HashMap<String, String> extend) {
return "";
}
/**
* 詳情數據
*/
public String detailContent(List<String> ids) {
return "";
}
/**
* 搜索數據內容
*/
public String searchContent(String key, boolean quick) {
return "";
}
/**
* 播放信息
*/
public String playerContent(String flag, String id, List<String> vipFlags) {
return "";
}
/**
* Webview 解析時使用 可自定義判斷當前加載的 url 是否是視頻
*/
public boolean isVideoFormat(String url) {
return false;
}
/**
* 是否手動檢測 Webview 中加載的 url
*/
public boolean manualVideoCheck() {
return false;
}
}

Loading…
Cancel
Save