MCPcopy Create free account
hub / github.com/FongMi/CatVodSpider / setHttpSub

Method setHttpSub

app/src/main/java/com/github/catvod/spider/Push.java:68–73  ·  view source on GitHub ↗
(String url, List<Sub> subs)

Source from the content-addressed store, hash-verified

66 }
67
68 private void setHttpSub(String url, List<Sub> subs) {
69 List<String> vodTypes = Arrays.asList("mp4", "mkv");
70 List<String> subTypes = Arrays.asList("srt", "ass");
71 if (!vodTypes.contains(Util.getExt(url))) return;
72 for (String ext : subTypes) detectSub(url, ext, subs);
73 }
74
75 private void detectSub(String url, String ext, List<Sub> subs) {
76 url = Util.removeExt(url).concat(".").concat(ext);

Callers 1

getSubsMethod · 0.95

Calls 2

getExtMethod · 0.95
detectSubMethod · 0.95

Tested by

no test coverage detected