From 5b000f3daf0ded288cfb1b49423d73423cbad3c0 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 19 Jul 2024 09:53:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuying.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuying.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SrcJuying.js b/SrcJuying.js index 8677a7cc..0d858828 100644 --- a/SrcJuying.js +++ b/SrcJuying.js @@ -848,7 +848,13 @@ function dianboyiji() { let voddesc = list.vod_desc || ""; let vodpic = list.vod_pic; vodpic = vodpic.replace('/img.php?url=', '').replace('/tu.php?tu=', ''); - vodpic = !vodpic.startsWith('http')&&vodpic.includes('(') ? vodpic.match(/\(\'(.*?)\'\)/)[1] : vodpic; + + let regex = /url\(['"]?([^'"]+)['"]?\)/; + let match = vodpic.match(regex); + if (match && match[1]) { + vodpic = match[1]; + } + if(/^\/\//.test(vodpic)){ vodpic = "https:" + vodpic; }