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

Method setFileSub

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

Source from the content-addressed store, hash-verified

80 }
81
82 private void setFileSub(String url, List<Sub> subs) {
83 File file = new File(url.replace("file://", ""));
84 for (File f : Path.list(file.getParentFile())) {
85 String ext = Util.getExt(f.getName());
86 if (Util.isSub(ext)) subs.add(Sub.create().name(Util.removeExt(f.getName())).ext(ext).url("file://" + f.getAbsolutePath()));
87 }
88 }
89}

Callers 1

getSubsMethod · 0.95

Calls 9

listMethod · 0.95
getExtMethod · 0.95
isSubMethod · 0.95
createMethod · 0.95
removeExtMethod · 0.95
extMethod · 0.80
getNameMethod · 0.45
urlMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected