MCPcopy Create free account
hub / github.com/FongMi/TV / replace

Method replace

app/src/main/java/com/fongmi/android/tv/api/Decoder.java:52–57  ·  view source on GitHub ↗
(String url, String data, String ext)

Source from the content-addressed store, hash-verified

50 }
51
52 private static String replace(String url, String data, String ext) {
53 String t = ext.replace("\"./", "\"" + UrlUtil.resolve(url, "./"));
54 t = t.replace("\"../", "\"" + UrlUtil.resolve(url, "../"));
55 t = t.replace("./", "__JS1__").replace("../", "__JS2__");
56 return data.replace(ext, t);
57 }
58
59 private static String cbc(String data) throws Exception {
60 String decode = new String(Util.hex2byte(data)).toLowerCase();

Callers 11

fixMethod · 0.95
fetchEpgDayMethod · 0.45
newCallMethod · 0.45
extractMethod · 0.45
m3uMethod · 0.45
txtMethod · 0.45
uaMethod · 0.45
refererMethod · 0.45
referrerMethod · 0.45
headersMethod · 0.45
localKeyMethod · 0.45

Calls 1

resolveMethod · 0.95

Tested by

no test coverage detected