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

Method vod

app/src/main/java/com/github/catvod/spider/Push.java:38–59  ·  view source on GitHub ↗
(String url)

Source from the content-addressed store, hash-verified

36 }
37
38 private Vod vod(String url) {
39 Vod vod = new Vod();
40 vod.setVodId(url);
41 vod.setVodPic(Image.PUSH);
42 vod.setTypeName("FongMi");
43 vod.setVodName(url.startsWith("file://") ? new File(url).getName() : "");
44 if (url.contains("://") && url.contains("#")) url = url.replace("#", "***");
45 if (Util.isThunder(url)) {
46 vod.setVodPlayUrl(url);
47 vod.setVodPlayFrom("迅雷");
48 } else if (url.contains("youtube.com")) {
49 vod.setVodPlayUrl(url);
50 vod.setVodPlayFrom("YouTube");
51 } else if (url.contains("$")) {
52 vod.setVodPlayFrom("直連");
53 vod.setVodPlayUrl(TextUtils.join("#", url.split("\n")));
54 } else {
55 vod.setVodPlayUrl(TextUtils.join("$$$", Arrays.asList(url, url, url)));
56 vod.setVodPlayFrom(TextUtils.join("$$$", Arrays.asList("直連", "嗅探", "解析")));
57 }
58 return vod;
59 }
60
61 private List<Sub> getSubs(String url) {
62 List<Sub> subs = new ArrayList<>();

Callers 9

detailContentMethod · 0.95
categoryContentMethod · 0.45
categoryContentMethod · 0.45
categoryContentMethod · 0.45
categoryContentMethod · 0.45
categoryContentMethod · 0.45
categoryContentMethod · 0.45
searchContentMethod · 0.45
categoryContentMethod · 0.45

Calls 8

setVodIdMethod · 0.95
setVodPicMethod · 0.95
setTypeNameMethod · 0.95
setVodNameMethod · 0.95
isThunderMethod · 0.95
setVodPlayUrlMethod · 0.95
setVodPlayFromMethod · 0.95
getNameMethod · 0.45

Tested by

no test coverage detected