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

Method verify

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

Source from the content-addressed store, hash-verified

32 }
33
34 private static String verify(String url, String data) throws Exception {
35 if (data.isEmpty()) throw new Exception();
36 if (Json.isObj(data)) return fix(url, data);
37 if (data.contains("**")) data = base64(data);
38 if (data.startsWith("2423")) data = cbc(data.replaceAll("\\s+", ""));
39 return fix(url, data);
40 }
41
42 private static String fix(String url, String data) {
43 Matcher matcher = JS_URI.matcher(data);

Callers 1

getJsonMethod · 0.95

Calls 7

isObjMethod · 0.95
fixMethod · 0.95
base64Method · 0.95
cbcMethod · 0.95
isEmptyMethod · 0.45
containsMethod · 0.45
startsWithMethod · 0.45

Tested by

no test coverage detected