From ce77debdfcbd358a309925f4151169490fa12967 Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Sun, 20 Nov 2022 20:03:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E4=B8=80=E6=9D=A1?= =?UTF-8?q?=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "base/\350\247\243\346\236\220.conf" | 3 +-- "jiexi/\344\270\207\350\203\275.js" | 12 ++++++++++++ js/version.txt | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 "jiexi/\344\270\207\350\203\275.js" diff --git "a/base/\350\247\243\346\236\220.conf" "b/base/\350\247\243\346\236\220.conf" index 82be5e0..ce94f55 100644 --- "a/base/\350\247\243\346\236\220.conf" +++ "b/base/\350\247\243\346\236\220.conf" @@ -32,5 +32,4 @@ RDHK,https://jx.rdhk.net/?v=,0 七彩,https://www.xymav.com/?url=,0 夜幕,https://www.yemu.xyz/?url=,0 1717云,https://www.1717yun.com/jx/ty.php?url=,0 -8090,https://www.8090g.cn/?url=,0 -万能,https://json.legendwhb.cn/llq/?url= \ No newline at end of file +8090,https://www.8090g.cn/?url=,0 \ No newline at end of file diff --git "a/jiexi/\344\270\207\350\203\275.js" "b/jiexi/\344\270\207\350\203\275.js" new file mode 100644 index 0000000..e3c3903 --- /dev/null +++ "b/jiexi/\344\270\207\350\203\275.js" @@ -0,0 +1,12 @@ +let jxUrl = 'https://json.legendwhb.cn/llq/?url='; +fetch_params.headers.Referer = jxUrl; +try { + let html = request(jxUrl+vipUrl); + eval(html.match(/var config = {[\s\S]*?}/)[0] + ""); + let play = request("https://json.legendwhb.cn/llq/API.php", {headers: {"User-Agent": MOBILE_UA, "X-Requested-With": "XMLHttpRequest", "origin": "https://json.legendwhb.cn"}, body: "url=" + config.url + "&time=" + config.time + "&key=" + config.key, method: "POST"}); + realUrl = JSON.parse(play).url; + log('解析到真实播放地址:'+realUrl); +}catch (e) { + log('解析发生错误:'+e.message); + realUrl = vipUrl; +} \ No newline at end of file diff --git a/js/version.txt b/js/version.txt index 1980bc5..f186870 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.21beta2 \ No newline at end of file +3.9.21beta3 \ No newline at end of file -- GitLab