From d26e724e54f6b75d945f969a1c95906569de07c2 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 14 Aug 2024 22:03:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyData.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyData.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/SrcJyData.js b/SrcJyData.js index 81a1e7e4..7d20e0de 100644 --- a/SrcJyData.js +++ b/SrcJyData.js @@ -769,14 +769,16 @@ function getSsData(name, jkdata, page) { try { if (/v1|app|iptv|v2|cms|hipy_/.test(api_type)) { let json; - if(api_type=="hipy_t4"){ + /*if(api_type=="hipy_t4"){ json = JSON.parse(getHtml(jkdata.url+"&wd="+name+"&extend="+jkdata.ext+"&quick=false", headers)); }else if(api_type=="hipy_t3"){ let drpy = GM.defineModule("SrcJuDrpy", config.依赖.match(/http(s)?:\/\/.*\//)[0] + "SrcJyDrpy.js").get(jkdata); json = JSON.parse(drpy.search(name, 0, page)); noerji = drpy.getRule("二级")=="*"?1:0; }else{ + */ gethtml = getHtmlCode(ssurl, headers); + /* if (/cms/.test(api_type)) { if (gethtml && gethtml.indexOf(name) == -1) { gethtml = getHtmlCode(ssurl.replace('videolist', 'list'), headers); @@ -806,20 +808,21 @@ function getSsData(name, jkdata, page) { } else { json = JSON.parse(gethtml.replace(/)<[^<]*)*<\/script>/gi, '')); } - } - + */ + //} + /* try { lists = eval(listnode) || json.list || json.data.list || json.data || []; } catch (e) { //lists = json.list || json.data.list || json.data || []; } - + if (lists.length == 0 && api_type == "iptv") { ssurl = ssurl.replace('&zm=' + name, ''); json = JSON.parse(getHtmlCode(ssurl, headers)); lists = json.data || []; } - /* + lists = lists.map(list => { let vodname = list.vod_name || list.title; let vodpic = list.vod_pic || list.pic || "";