更新 'SrcJySet.js'

master
src48597962 4 months ago
parent 4b8bbceff2
commit 0beeec03db
  1. 23
      SrcJySet.js

@ -1906,6 +1906,7 @@ function resource() {
addListener("onClose", $.toString(() => {
clearMyVar('importjiekou');
clearMyVar('importjiexi');
clearMyVar('importAdRule');
clearMyVar('importtype');
clearMyVar('importinput');
}));
@ -1994,6 +1995,19 @@ function resource() {
return "hiker://empty";
})
});
d.push({
title:(getMyVar('importAdRule','1')=="1"?getide(1):getide(0))+'广告规则',
col_type:'scroll_button',
url:$('#noLoading#').lazyRule(() => {
if(getMyVar('importAdRule')=="0"){
putMyVar('importAdRule','1');
}else{
putMyVar('importAdRule','0');
}
refreshPage(false);
return "hiker://empty";
})
});
}else if(importtype=="3"){
d.push({
title: '当前订阅地址:' + Juconfig['dySource'],
@ -2030,7 +2044,7 @@ function resource() {
d.push({
title: '🆗 '+(importtype=="4"?'确定扫描':importtype=="3"?'确定订阅':'确定导入(' + (Juconfig["importmode"]?"全量":"增量")+')'),
url: importtype=="1"&&getMyVar('importjiekou','1')!="1"&&getMyVar('importjiexi','1')!="1"?'toast://请选择导入项目':$('#noLoading#').lazyRule((Juconfig,cfgfile) => {
url: importtype=="1"&&getMyVar('importjiekou','1')!="1"&&getMyVar('importjiexi','1')!="1"&&getMyVar('importAdRule','1')!="1"?'toast://请选择导入项目':$('#noLoading#').lazyRule((Juconfig,cfgfile) => {
let importtype = getMyVar('importtype','1');
let input = getMyVar('importinput', '').trim();
@ -2287,6 +2301,9 @@ function Resourceimport(input,importtype,importmode){
}
if(getMyVar('importjiexi','1')=="1"){
imports.jx = 1;
}
if(getMyVar('importAdRule','1')=="1"){
imports.ad = 1;
}
let boxSource = getBoxSource(input, 1, imports);
if(boxSource.message){
@ -2314,6 +2331,10 @@ function Resourceimport(input,importtype,importmode){
clearMyVar('importinput');
refreshPage(false);
}
if(boxSource.adRule){
let m3u8Ad_file = globalMap0.getVar('Jy_gmParams').rulepath + "m3u8_ad_rule.json";
writeFile(m3u8Ad_file, boxSource.adRule);
}
return 'toast://TVBox导入:'+(sm?sm:'导入异常,详情查看日志');
}
}

Loading…
Cancel
Save