From fcf7239bfbd9e6ff5ce058ff8fc22656b4e73aaf Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 30 Jun 2024 20:56:36 +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 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SrcJyData.js b/SrcJyData.js index de4bad29..ecdf22c2 100644 --- a/SrcJyData.js +++ b/SrcJyData.js @@ -98,7 +98,7 @@ function getYiData(jkdata) { } } else if (api_type == "t4") { classurl = api_url + "&filter=true"; - listurl = api_url + "&t="+cate_id+"&ac=detail&pg="+MY_PAGE+"&ext="+jkdata.ext; + listurl = api_url + "&t={cate_id}&ac=detail&pg="+MY_PAGE+"&ext="+jkdata.ext; //listnode = "json.list"; } else { log(api_type + '>api类型错误'); @@ -457,6 +457,8 @@ function getYiData(jkdata) { listurl = listurl.replace('{catePg}', extdata["起始页"] ? MY_PAGE > extdata["起始页"] ? MY_PAGE : extdata["起始页"] : MY_PAGE).replace(/{/g, '${fl.').replace(/}/g, ' || ""}'); eval(`listurl = \`${listurl}\`;`); MY_URL = listurl; + } else if (api_type='t4'){ + MY_URL = listurl.replace('{cate_id}', cate_id); } else { MY_URL = listurl + MY_PAGE; type_id = fl.cateId || ""; @@ -473,7 +475,7 @@ function getYiData(jkdata) { vodlists = []; let vod_name, vod_pic, vod_url, vod_desc; if (api_type=="t4") { - let vodlist = JSON.parse(getHtml(listurl, headers)).list || []; + let vodlist = JSON.parse(getHtml(MY_URL, headers)).list || []; vodlist.forEach(it=>{ vodlists.push({ "vod_url": it.vod_id.toString(), "vod_name": it.vod_name, "vod_desc": it.vod_remarks, "vod_pic": it.vod_pic }); }) @@ -1342,6 +1344,7 @@ function getErData(jkdata) { } } else if (api_type == 'hipy_t3' || api_type == 't4') { let json = JSON.parse(html).list[0]; + log(json); actor = json.vod_actor; area = json.vod_area; remarks = json.vod_remarks || json.vod_class || ""; @@ -1351,6 +1354,7 @@ function getErData(jkdata) { lists = json.vod_play_url.split('$$$').map(it => { return it.split('#'); }); + log(lists); } if (/XPath|biubiu|XBPQ|XYQ/.test(api_type) && html && (tabs.length == 0 || lists.length == 0) && getMyVar('debug', '0') == "0" && html.indexOf(MY_PARAMS.pageTitle) > -1) {