update SrcJuying.js.

pull/1/head
src48597962 3 years ago committed by Gitee
parent c9e0f89991
commit 11078a651c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
  1. 47
      SrcJuying.js

@ -583,30 +583,37 @@ function sousuo2() {
//搜索 //搜索
function sousuo() { function sousuo() {
var d = []; var d = [];
var html = getResCode(); var cfgfile = "hiker://files/rules/Src/Juying/config.json";
try { var Juyingcfg=fetch(cfgfile);
var list = JSON.parse(html.match(/INITIAL_STATE.*?({.*});/)[1]).result.longVideo.results; if(Juyingcfg != ""){
for (var i = 0; i < list.length; i++) { eval("var JYconfig=" + Juyingcfg+ ";");
if (list[i].play.item_list){ }
d.push({ if(JYconfig.sousuoms!=2){
title: list[i].name.replace(/|/g,''), var html = getResCode();
url: 'hiker://empty##https://v.sogou.com' + list[i].tiny_url + "#immersiveTheme#", try {
desc: list[i].list_category.join(','), var list = JSON.parse(html.match(/INITIAL_STATE.*?({.*});/)[1]).result.longVideo.results;
content: list[i].introduction, for (var i = 0; i < list.length; i++) {
pic_url: list[i].v_picurl, if (list[i].play.item_list){
extra: { d.push({
pic: list[i].v_picurl, title: list[i].name.replace(/|/g,''),
name: list[i].name.replace(/|/g,'') url: 'hiker://empty##https://v.sogou.com' + list[i].tiny_url + "#immersiveTheme#",
} desc: list[i].list_category.join(','),
}) content: list[i].introduction,
pic_url: list[i].v_picurl,
extra: {
pic: list[i].v_picurl,
name: list[i].name.replace(/|/g,'')
}
})
}
} }
} } catch (e) { }
} catch (e) { } }
if(fileExist('hiker://files/rules/Src/Juying/jiekou.json')){ if(fileExist('hiker://files/rules/Src/Juying/jiekou.json')){
try{ try{
let name = encodeURIComponent(MY_URL.match(/query(.*?)&/)[1]); let name = MY_URL.match(/query=(.*?)&/)[1];
d.push({ d.push({
title: "点击调用聚影接口进行聚合搜索", title: "调用聚影接口聚合搜索>"+name,
url: $('hiker://empty#noRecordHistory##noHistory#').rule((name) => { url: $('hiker://empty#noRecordHistory##noHistory#').rule((name) => {
require(config.依赖.match(/https.*\//)[0] + 'SrcJyXunmi.js'); require(config.依赖.match(/https.*\//)[0] + 'SrcJyXunmi.js');
xunmi(name); xunmi(name);

Loading…
Cancel
Save