|
|
@ -283,7 +283,7 @@ function getapitype(apiurl) { |
|
|
|
function jiekousave(urls) { |
|
|
|
function jiekousave(urls) { |
|
|
|
if(urls.length==0){return 0;} |
|
|
|
if(urls.length==0){return 0;} |
|
|
|
try{ |
|
|
|
try{ |
|
|
|
let filepath = "hiker://files/rules/Src/Jubox/jiekou.json"; |
|
|
|
let filepath = jkfile; |
|
|
|
let datalist = []; |
|
|
|
let datalist = []; |
|
|
|
var datafile = fetch(filepath); |
|
|
|
var datafile = fetch(filepath); |
|
|
|
if(datafile != ""){ |
|
|
|
if(datafile != ""){ |
|
|
@ -327,7 +327,7 @@ function jiekousave(urls) { |
|
|
|
function jiexisave(urls,update,codedytype) { |
|
|
|
function jiexisave(urls,update,codedytype) { |
|
|
|
if(urls.length==0){return 0;} |
|
|
|
if(urls.length==0){return 0;} |
|
|
|
try{ |
|
|
|
try{ |
|
|
|
var filepath = "hiker://files/rules/Src/Jubox/myjiexi.json"; |
|
|
|
var filepath = jxfile ; |
|
|
|
var datafile = fetch(filepath); |
|
|
|
var datafile = fetch(filepath); |
|
|
|
if(datafile != ""){ |
|
|
|
if(datafile != ""){ |
|
|
|
eval("var datalist=" + datafile+ ";"); |
|
|
|
eval("var datalist=" + datafile+ ";"); |
|
|
@ -473,7 +473,7 @@ function jiexi(lx,data) { |
|
|
|
d.push({ |
|
|
|
d.push({ |
|
|
|
col_type: "line_blank" |
|
|
|
col_type: "line_blank" |
|
|
|
}); |
|
|
|
}); |
|
|
|
var recordfile = "hiker://files/rules/Src/Jubox/parse.json"; |
|
|
|
var recordfile = "hiker://files/rules/Src/Juying2/parse.json"; |
|
|
|
var recordparse=fetch(recordfile); |
|
|
|
var recordparse=fetch(recordfile); |
|
|
|
if(recordparse!=""){ |
|
|
|
if(recordparse!=""){ |
|
|
|
eval("var recordlist=" + recordparse+ ";"); |
|
|
|
eval("var recordlist=" + recordparse+ ";"); |
|
|
@ -663,7 +663,7 @@ function jiexi(lx,data) { |
|
|
|
cls: 'jxtest' |
|
|
|
cls: 'jxtest' |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
var filepath = 'hiker://files/rules/Src/Jubox/testurls.json'; |
|
|
|
var filepath = 'hiker://files/rules/Src/Juying2/testurls.json'; |
|
|
|
var datafile = fetch(filepath); |
|
|
|
var datafile = fetch(filepath); |
|
|
|
if(datafile != ""){ |
|
|
|
if(datafile != ""){ |
|
|
|
eval("var urls=" + datafile+ ";"); |
|
|
|
eval("var urls=" + datafile+ ";"); |
|
|
@ -716,7 +716,7 @@ function jiexi(lx,data) { |
|
|
|
addItemBefore('jxline2', { |
|
|
|
addItemBefore('jxline2', { |
|
|
|
title: '编辑测试', |
|
|
|
title: '编辑测试', |
|
|
|
url: $('#noRecordHistory##noHistory#').lazyRule(()=>{ |
|
|
|
url: $('#noRecordHistory##noHistory#').lazyRule(()=>{ |
|
|
|
return "editFile://hiker://files/rules/Src/Jubox/testurls.json"; |
|
|
|
return "editFile://hiker://files/rules/Src/Juying2/testurls.json"; |
|
|
|
}), |
|
|
|
}), |
|
|
|
col_type: "text_3", |
|
|
|
col_type: "text_3", |
|
|
|
extra:{ |
|
|
|
extra:{ |
|
|
@ -737,7 +737,7 @@ function jiexi(lx,data) { |
|
|
|
title:'删除', |
|
|
|
title:'删除', |
|
|
|
col_type:'text_3', |
|
|
|
col_type:'text_3', |
|
|
|
url: $("确定删除解析:"+getMyVar('parsename',data.name)).confirm((dataurl)=>{ |
|
|
|
url: $("确定删除解析:"+getMyVar('parsename',data.name)).confirm((dataurl)=>{ |
|
|
|
var filepath = "hiker://files/rules/Src/Jubox/myjiexi.json"; |
|
|
|
var filepath = "hiker://files/rules/Src/Juying2/myjiexi.json"; |
|
|
|
var datafile = fetch(filepath); |
|
|
|
var datafile = fetch(filepath); |
|
|
|
eval("var datalist=" + datafile+ ";"); |
|
|
|
eval("var datalist=" + datafile+ ";"); |
|
|
|
for(var i=0;i<datalist.length;i++){ |
|
|
|
for(var i=0;i<datalist.length;i++){ |
|
|
@ -879,14 +879,7 @@ function extension(){ |
|
|
|
clearMyVar('uploadyundisk'); |
|
|
|
clearMyVar('uploadyundisk'); |
|
|
|
refreshPage(false); |
|
|
|
refreshPage(false); |
|
|
|
})); |
|
|
|
})); |
|
|
|
var d = []; |
|
|
|
let d = []; |
|
|
|
var cfgfile = "hiker://files/rules/Src/Jubox/config.json"; |
|
|
|
|
|
|
|
var Juyingcfg=fetch(cfgfile); |
|
|
|
|
|
|
|
if(Juyingcfg != ""){ |
|
|
|
|
|
|
|
eval("var JYconfig=" + Juyingcfg+ ";"); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
var JYconfig= {}; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getide(is) { |
|
|
|
function getide(is) { |
|
|
|
if(is==1){ |
|
|
|
if(is==1){ |
|
|
@ -1071,7 +1064,7 @@ function extension(){ |
|
|
|
url: $().lazyRule((JYconfig,cfgfile) => { |
|
|
|
url: $().lazyRule((JYconfig,cfgfile) => { |
|
|
|
var text = {}; |
|
|
|
var text = {}; |
|
|
|
if(getMyVar('uploadjiekou','0')=="1"){ |
|
|
|
if(getMyVar('uploadjiekou','0')=="1"){ |
|
|
|
var filepath = "hiker://files/rules/Src/Jubox/jiekou.json"; |
|
|
|
var filepath = "hiker://files/rules/Src/Juying2/jiekou.json"; |
|
|
|
var datafile = fetch(filepath); |
|
|
|
var datafile = fetch(filepath); |
|
|
|
if(datafile==""){ |
|
|
|
if(datafile==""){ |
|
|
|
var datalist = []; |
|
|
|
var datalist = []; |
|
|
@ -1081,7 +1074,7 @@ function extension(){ |
|
|
|
text['jiekou'] = datalist; |
|
|
|
text['jiekou'] = datalist; |
|
|
|
} |
|
|
|
} |
|
|
|
if(getMyVar('uploadjiexi','0')=="1"){ |
|
|
|
if(getMyVar('uploadjiexi','0')=="1"){ |
|
|
|
var filepath = "hiker://files/rules/Src/Jubox/myjiexi.json"; |
|
|
|
var filepath = "hiker://files/rules/Src/Juying2/jiexi.json"; |
|
|
|
var datafile = fetch(filepath); |
|
|
|
var datafile = fetch(filepath); |
|
|
|
if(datafile==""){ |
|
|
|
if(datafile==""){ |
|
|
|
var datalist = []; |
|
|
|
var datalist = []; |
|
|
@ -1091,7 +1084,7 @@ function extension(){ |
|
|
|
text['jiexi'] = datalist; |
|
|
|
text['jiexi'] = datalist; |
|
|
|
} |
|
|
|
} |
|
|
|
if(getMyVar('uploadlive','0')=="1"){ |
|
|
|
if(getMyVar('uploadlive','0')=="1"){ |
|
|
|
var filepath = "hiker://files/rules/Src/Jubox/liveconfig.json"; |
|
|
|
var filepath = "hiker://files/rules/Src/Juying2/liveconfig.json"; |
|
|
|
var datafile = fetch(filepath); |
|
|
|
var datafile = fetch(filepath); |
|
|
|
if(datafile==""){ |
|
|
|
if(datafile==""){ |
|
|
|
var liveconfig={}; |
|
|
|
var liveconfig={}; |
|
|
@ -1101,7 +1094,7 @@ function extension(){ |
|
|
|
text['live'] = liveconfig; |
|
|
|
text['live'] = liveconfig; |
|
|
|
} |
|
|
|
} |
|
|
|
if(getMyVar('uploadyundisk','0')=="1"){ |
|
|
|
if(getMyVar('uploadyundisk','0')=="1"){ |
|
|
|
var filepath = "hiker://files/rules/Src/Jubox/yundisk.json"; |
|
|
|
var filepath = "hiker://files/rules/Src/Juying2/yundisk.json"; |
|
|
|
var datafile = fetch(filepath); |
|
|
|
var datafile = fetch(filepath); |
|
|
|
if(datafile==""){ |
|
|
|
if(datafile==""){ |
|
|
|
var datalist=[]; |
|
|
|
var datalist=[]; |
|
|
@ -1264,7 +1257,7 @@ function extension(){ |
|
|
|
jxnum = jiexisave(jxdatalist, 0, codedytype||1); |
|
|
|
jxnum = jiexisave(jxdatalist, 0, codedytype||1); |
|
|
|
} |
|
|
|
} |
|
|
|
if(pastedata.live){ |
|
|
|
if(pastedata.live){ |
|
|
|
let livefilepath = "hiker://files/rules/Src/Jubox/liveconfig.json"; |
|
|
|
let livefilepath = "hiker://files/rules/Src/Juying2/liveconfig.json"; |
|
|
|
let liveconfig = pastedata.live; |
|
|
|
let liveconfig = pastedata.live; |
|
|
|
writeFile(livefilepath, JSON.stringify(liveconfig)); |
|
|
|
writeFile(livefilepath, JSON.stringify(liveconfig)); |
|
|
|
var sm = ",直播订阅已同步" |
|
|
|
var sm = ",直播订阅已同步" |
|
|
@ -1557,7 +1550,7 @@ function extension(){ |
|
|
|
refreshPage(false); |
|
|
|
refreshPage(false); |
|
|
|
})); |
|
|
|
})); |
|
|
|
setPageTitle("🆖资源导入-历史记录"); |
|
|
|
setPageTitle("🆖资源导入-历史记录"); |
|
|
|
let cfgfile = "hiker://files/rules/Src/Jubox/config.json"; |
|
|
|
let cfgfile = "hiker://files/rules/Src/Juying2/config.json"; |
|
|
|
let Juyingcfg=fetch(cfgfile); |
|
|
|
let Juyingcfg=fetch(cfgfile); |
|
|
|
if(Juyingcfg != ""){ |
|
|
|
if(Juyingcfg != ""){ |
|
|
|
eval("var JYconfig=" + Juyingcfg+ ";"); |
|
|
|
eval("var JYconfig=" + Juyingcfg+ ";"); |
|
|
@ -1757,7 +1750,7 @@ function Resourceimport(input,importtype){ |
|
|
|
if (content == '') { |
|
|
|
if (content == '') { |
|
|
|
urlfile = ''; |
|
|
|
urlfile = ''; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
urlfile = 'hiker://files/cache/src/Jubox/libs/' + arr.type + '_' + extfile.substr(extfile.lastIndexOf('/') + 1); |
|
|
|
urlfile = 'hiker://files/cache/src/Juying2/libs/' + arr.type + '_' + extfile.substr(extfile.lastIndexOf('/') + 1); |
|
|
|
writeFile(urlfile, content); |
|
|
|
writeFile(urlfile, content); |
|
|
|
} |
|
|
|
} |
|
|
|
}catch(e){ |
|
|
|
}catch(e){ |
|
|
@ -1847,7 +1840,7 @@ function Resourceimport(input,importtype){ |
|
|
|
} |
|
|
|
} |
|
|
|
if(urls.length>0){ |
|
|
|
if(urls.length>0){ |
|
|
|
livenum = 0; |
|
|
|
livenum = 0; |
|
|
|
let livecfgfile = "hiker://files/rules/Src/Jubox/liveconfig.json"; |
|
|
|
let livecfgfile = "hiker://files/rules/Src/Juying2/liveconfig.json"; |
|
|
|
let livecfg = fetch(livecfgfile); |
|
|
|
let livecfg = fetch(livecfgfile); |
|
|
|
if(livecfg != ""){ |
|
|
|
if(livecfg != ""){ |
|
|
|
eval("var liveconfig = " + livecfg); |
|
|
|
eval("var liveconfig = " + livecfg); |
|
|
@ -1892,10 +1885,10 @@ function Resourceimport(input,importtype){ |
|
|
|
//资源分享
|
|
|
|
//资源分享
|
|
|
|
function JYshare(lx,input) { |
|
|
|
function JYshare(lx,input) { |
|
|
|
if(lx=="jk"){ |
|
|
|
if(lx=="jk"){ |
|
|
|
var filepath = "hiker://files/rules/Src/Jubox/jiekou.json"; |
|
|
|
var filepath = jkfile; |
|
|
|
var sm = "聚影接口"; |
|
|
|
var sm = "聚影接口"; |
|
|
|
}else if(lx=="jx"){ |
|
|
|
}else if(lx=="jx"){ |
|
|
|
var filepath = "hiker://files/rules/Src/Jubox/myjiexi.json"; |
|
|
|
var filepath = jxfile; |
|
|
|
var sm = "聚影解析"; |
|
|
|
var sm = "聚影解析"; |
|
|
|
} |
|
|
|
} |
|
|
|
var datafile = fetch(filepath); |
|
|
|
var datafile = fetch(filepath); |
|
|
|