From f37b0ee58008218a820479f0769682335ccd230d Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 21 Jun 2024 21:33:39 +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 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/SrcJyData.js b/SrcJyData.js index 589c1e67..50a3e130 100644 --- a/SrcJyData.js +++ b/SrcJyData.js @@ -621,6 +621,7 @@ function getSsData(name, jkdata, page) { } function getHtmlCode(ssurl, headers) { let html = request(ssurl, { headers: headers, timeout: timeout }); + log(html); try { if (html.indexOf('检测中') != -1) { html = request(ssurl + '&btwaf' + html.match(/btwaf(.*?)\"/)[1], { headers: headers, timeout: timeout }); @@ -861,12 +862,13 @@ function getSsData(name, jkdata, page) { try { lists.forEach((list) => { let vodpic = list.vodpic ? list.vodpic.replace(/http.*\/tu\.php\?tu=|\/img\.php\?url=| |\/tu\.php\?tu=/g, '') : "hiker://files/cache/src/404.jpg"; - if (/^\/\//.test(vodpic)) { - vodpic = "https:" + vodpic; - }else if (/^\//.test(vodpic)) { - vodpic = vodurlhead + vodpic; - }else if (!/^http/.test(vodpic) && !/^hiker/.test(vodpic) && !/^\//.test(vodpic)){ - vodpic = vodurlhead + '/' + vodpic; + if(!/^hiker/.test(vodpic)){ + if (/^\/\//.test(vodpic)) { + vodpic = "https:" + vodpic; + } + if(!/^http/.test(vodpic)){ + vodpic = getHome(list.vodurl) + vodpic; + } } if (list.vodname.includes(name)) { searchs.push({