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

Method getExt

quickjs/src/main/java/com/fongmi/quickjs/crawler/Spider.java:198–206  ·  view source on GitHub ↗
(String ext)

Source from the content-addressed store, hash-verified

196 }
197
198 private Object getExt(String ext) {
199 if (!cat) return Json.isObj(ext) ? ctx.parse(ext) : ext;
200 JSObject obj = ctx.createNewJSObject();
201 obj.setProperty("stype", 3);
202 obj.setProperty("skey", siteKey);
203 if (!Json.isObj(ext)) obj.setProperty("ext", ext);
204 else obj.setProperty("ext", (JSObject) ctx.parse(ext));
205 return obj;
206 }
207
208 private Object[] proxy1(Map<String, String> params) throws Exception {
209 JSObject obj = submit(() -> JSUtil.toObject(ctx, params)).get();

Callers 1

initMethod · 0.95

Calls 3

isObjMethod · 0.95
setPropertyMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected