From 5e2cf8e9fa135db2612050f45e0c7e5c6cfdc48a Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Mon, 12 Sep 2022 10:11:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E7=8B=97=E5=85=8D=E5=97=85=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=AD=A3=E7=89=88=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "js/\350\217\234\347\213\227.js" | 3 +-- "py/\346\220\234\347\213\227\345\205\215\345\227\205.js" | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git "a/js/\350\217\234\347\213\227.js" "b/js/\350\217\234\347\213\227.js" index 78b2fa4..394766e 100644 --- "a/js/\350\217\234\347\213\227.js" +++ "b/js/\350\217\234\347\213\227.js" @@ -19,8 +19,7 @@ var rule = { limit:20, play_parse:true, // 手动调用解析请求json的url,此lazy不方便 - // lazy:'js:input="https://cache.json.icu/home/api?type=ys&uid=292796&key=fnoryABDEFJNPQV269&url="+input.split("?")[0];log(input);let html=JSON.parse(request(input));log(html);input=html.url||input', - lazy:'js:fetch_params.headers["user-agent"]=MOBILE_UA;let html=request(input);let rurl=html.match(/window\\.open\\(\'(.*?)\',/)[1].split("?")[0];input={parse:1,url:rurl};', + lazy:'js:fetch_params.headers["user-agent"]=MOBILE_UA;let html=request(input);let rurl=html.match(/window\\.open\\(\'(.*?)\',/)[1];rurl=urlDeal(rurl);input={parse:1,url:rurl};', // 推荐:'.list_item;img&&alt;img&&src;a&&Text;a&&data-float', 一级:'js:let d=[];let html=request(input);html=JSON.parse(html);let list=html.listData.results;list.forEach(function(it){let desc1=it.ipad_play_for_list.finish_episode?it.ipad_play_for_list.episode===it.ipad_play_for_list.finish_episode?"全集"+it.ipad_play_for_list.finish_episode:"连载"+it.ipad_play_for_list.episode+"/"+it.ipad_play_for_list.finish_episode:"";let desc2=it.score?"评分:"+it.score:"";let desc3=it.date?"更至:"+it.date:"";d.push({title:it.name,img:it.v_picurl,url:"https://v.sogou.com"+it.url.replace("teleplay","series").replace("cartoon","series"),desc:desc1||desc2||desc3})});setResult(d);', 二级:'', diff --git "a/py/\346\220\234\347\213\227\345\205\215\345\227\205.js" "b/py/\346\220\234\347\213\227\345\205\215\345\227\205.js" index 380e961..7a85a73 100644 --- "a/py/\346\220\234\347\213\227\345\205\215\345\227\205.js" +++ "b/py/\346\220\234\347\213\227\345\205\215\345\227\205.js" @@ -4,8 +4,10 @@ js: // let html = data.body; fetch_params.headers['user-agent'] = MOBILE_UA; let html=request(input); -let rurl = html.match(/window\.open\('(.*?)',/)[1].split('?')[0]; -// print(input); +// let rurl = html.match(/window\.open\('(.*?)',/)[1].split('?')[0]; +let rurl = html.match(/window\.open\('(.*?)',/)[1]; +// print(rurl); +rurl = urlDeal(rurl); // print(rurl); // input = rurl; input = {parse:1,url:rurl}; -- GitLab