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

Method playerContent

app/src/main/java/com/github/catvod/spider/PTT.java:95–100  ·  view source on GitHub ↗
(String flag, String id, List<String> vipFlags)

Source from the content-addressed store, hash-verified

93 }
94 Vod vod = new Vod();
95 vod.setVodPlayFrom(TextUtils.join("$$$", flags.values()));
96 vod.setVodPlayUrl(TextUtils.join("$$$", playUrls));
97 return Result.string(vod);
98 }
99
100 @Override
101 public String playerContent(String flag, String id, List<String> vipFlags) {
102 Matcher m = Pattern.compile("contentUrl\":\"(.*?)\"").matcher(OkHttp.string(url + id, getHeader()));
103 if (m.find()) return Result.get().url(m.group(1).replace("\\", "")).string();

Callers

nothing calls this directly

Calls 6

stringMethod · 0.95
getMethod · 0.95
errorMethod · 0.95
matcherMethod · 0.80
findMethod · 0.80
urlMethod · 0.45

Tested by

no test coverage detected