From 3b2d849dac69638def6e2df6c4c0137f642ea08c Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 2 Aug 2024 19:29:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyPublic.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 7ab9b988..7483aea2 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -127,7 +127,6 @@ function checkBoxUrl(input) { if(html.includes('LuUPraez**')){ html = base64Decode(html.split('LuUPraez**')[1]); } - log(html); eval('let data = ' + html) if(data.urls){ hideLoading(); @@ -193,6 +192,7 @@ function getBoxSource(input, mode, imports){ hideLoading(); */ let checkUrl = checkBoxUrl(input); + hideLoading(); if(checkUrl.message){ return checkUrl; }else if(checkUrl.urls){ @@ -218,6 +218,7 @@ function getBoxSource(input, mode, imports){ message: "已订阅,站源改为订阅模式下生效" }; } + showLoading('正在多线程获取数据中...'); showLoading('正在多线程获取数据中...'); showLoading('正在多线程获取数据中...'); @@ -231,7 +232,6 @@ function getBoxSource(input, mode, imports){ let hipy_t3_enable = getItem('hipy_t3_enable')=="1"?1:0; //多线程处理 let task = function(obj) { - showLoading('正在多线程获取数据中...'); let arr; if(/^csp_AppYs/.test(obj.api)){ arr = { "name": obj.name, "url": obj.ext, "type": getapitype(obj.ext)}; @@ -290,10 +290,16 @@ function getBoxSource(input, mode, imports){ if(arr.type=="XYQ" && !/分类片单标题/.test(content)){ arr['onlysearch'] = 1; } - if(arr.type=="XBPQ" && !/搜索url/.test(content)){ - obj.searchable = 0; + if(arr.type=="XBPQ"){ + if(!/数组/.test(content)){ + urlfile = ''; + }else if(!/搜索url/.test(content)){ + obj.searchable = 0; + } + } + if(urlfile){ + writeFile(urlfile, content); } - writeFile(urlfile, content); } }catch(e){ log(obj.name + 'ext文件缓存失败>' + e.message);