From e1f90fd0659cabe76ad5d5264c7f869342bf5a8e Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Fri, 7 Oct 2022 20:40:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=B7=E4=BA=9177=E6=92=AD=E6=94=BE=E5=85=BC?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "js/\351\205\267\344\272\22177.js" | 3 ++- "py/\351\205\267\344\272\221\345\205\215\345\227\205.js" | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git "a/js/\351\205\267\344\272\22177.js" "b/js/\351\205\267\344\272\22177.js" index 25561cd..2ffb5b5 100644 --- "a/js/\351\205\267\344\272\22177.js" +++ "b/js/\351\205\267\344\272\22177.js" @@ -22,7 +22,8 @@ var rule = { play_parse:true, // 手动调用解析请求json的url,此lazy不方便 // lazy:'js:input={parse:1,url:input};', - lazy:'js:function GetPlayUrl(playUrl){let realPlay={parse:0,url:playUrl};if(/mgtv|sohu/.test(playUrl)){realPlay.headers={"User-Agent":"Mozilla/5.0"}}else if(/bili/.test(playUrl)){realPlay.headers={"User-Agent":"Mozilla/5.0",Referer:"https://www.bilibili.com"}}else if(/ixigua/.test(playUrl)){realPlay.headers={"User-Agent":"Mozilla/5.0",Referer:"https://www.ixigua.com"}}return realPlay}if(/\\.m3u8|\\.mp4/.test(input)){input={parse:0,url:input}}else{try{let url="http://api.kunyu77.com/api.php/provide/parserUrl?url="+input;let html=request(url);let urll=JSON.parse(html).data.url;let playhtml=request(urll);let playurl=JSON.parse(playhtml).url;input=GetPlayUrl(playurl)}catch(e){input={parse:1,url:input}}}', + lazy:'', + lazy:'js:function GetPlayUrl(playUrl){let realPlay={parse:0,url:playUrl};if(/mgtv|sohu/.test(playUrl)){realPlay.headers={"User-Agent":"Mozilla/5.0"}}else if(/bili/.test(playUrl)){realPlay.headers={"User-Agent":"Mozilla/5.0",Referer:"https://www.bilibili.com"}}else if(/ixigua/.test(playUrl)){realPlay.headers={"User-Agent":"Mozilla/5.0",Referer:"https://www.ixigua.com"}}return realPlay}if(/\\.m3u8|\\.mp4/.test(input)){input={parse:0,url:input}}else{try{let url="http://api.kunyu77.com/api.php/provide/parserUrl?url="+input;let html=request(url);let urll=JSON.parse(html).data.url;let playhtml=request(urll);let playurl=JSON.parse(playhtml).url;input=GetPlayUrl(playurl)}catch(e){input={parse:1,jx:1,url:input}}}', 推荐:'json:data.blocks;contents;title;videoCover;msg;id', double:true, // 一级:'json:data.filterData.listData;title;img;subTitle;videoLink;summary', diff --git "a/py/\351\205\267\344\272\221\345\205\215\345\227\205.js" "b/py/\351\205\267\344\272\221\345\205\215\345\227\205.js" index 2d3d285..4d13a26 100644 --- "a/py/\351\205\267\344\272\221\345\205\215\345\227\205.js" +++ "b/py/\351\205\267\344\272\221\345\205\215\345\227\205.js" @@ -21,6 +21,6 @@ if (/\.m3u8|\.mp4/.test(input)) { let playurl = JSON.parse(playhtml).url; input = GetPlayUrl(playurl); }catch (e) { - input = {parse:1,url:input}; + input = {parse:1,jx:1,url:input}; } } \ No newline at end of file -- GitLab