From 998dfe9916c2762931f3891e7e4dc3027cd65097 Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Sat, 3 Dec 2022 21:38:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E4=B8=AA=E5=9E=83?= =?UTF-8?q?=E5=9C=BE=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/version.txt | 2 +- ...71\346\236\234\347\210\261\345\276\256.js" | 28 +++++++++++++++++++ templates/config.txt | 5 ++++ txt/py/py_alist.py | 3 +- 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 "js/\350\213\271\346\236\234\347\210\261\345\276\256.js" diff --git a/js/version.txt b/js/version.txt index c7022e8..4f51e43 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.28beta5 \ No newline at end of file +3.9.28beta6 \ No newline at end of file diff --git "a/js/\350\213\271\346\236\234\347\210\261\345\276\256.js" "b/js/\350\213\271\346\236\234\347\210\261\345\276\256.js" new file mode 100644 index 0000000..a1f646c --- /dev/null +++ "b/js/\350\213\271\346\236\234\347\210\261\345\276\256.js" @@ -0,0 +1,28 @@ +/* 已知问题: +1.图片是base64文本编码壳子无法显示 +2.播放地址 https://ss.rongliren.com/api/video/m3u8?id=22180&admin=1 像这样,壳子无法播放 + */ +var rule = { + title:'苹果爱微', + host:'https://files.yuchenglw.com', + homeUrl:'/Index/lists?cat=1', + url:'/Index/lists?cat=fyclass', + headers:{ + 'User-Agent':'IOS_UA' + }, + searchable:0, + quickSearch:0, + timeout:5000, + // play_json:[{re:'*', json:{jx:0, parse:1,header:JSON.stringify({"user-agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1"})}}], + // play_json:0, + class_parse:'.childs a;a&&Text;a&&href;cat=(.*)', + limit:5, + play_parse:true, + lazy:'', + 推荐:'*', + 一级:'.row.lists .item;.time&&Text;img&&data-src;.time&&Text;a&&href', + // 二级:'*', + 二级:'*', + 图片来源:'@Referer=https://files.yuchenglw.com', + lazy:'js:pd=jsp.pd;let html=request(input);let a=pd(html,"source&&src");input=a' +} \ No newline at end of file diff --git a/templates/config.txt b/templates/config.txt index ad98238..8444e21 100644 --- a/templates/config.txt +++ b/templates/config.txt @@ -281,6 +281,11 @@ ] } ], +"rules":[ +{ +"host":"files.yuchenglw.com", +"rule":["m3u8?id="], +}], "ads": [ "mimg.0c1q0l.cn", "www.googletagmanager.com", diff --git a/txt/py/py_alist.py b/txt/py/py_alist.py index 40849ba..f8fb4e4 100644 --- a/txt/py/py_alist.py +++ b/txt/py/py_alist.py @@ -32,7 +32,8 @@ class Spider(Spider): # 元类 默认的元类 type # "小孟资源": "https://8023.haohanba.cn/小孟丨资源大合集/无损音乐", "资源小站": "https://960303.xyz/ali", "轻弹浅唱": "https://g.xiang.lol", - "小兵组网盘视频": "https://6vv.app" + "小兵组网盘视频": "https://6vv.app", + # "wenwen": "http://518p8g7316.goho.co:5244", } classes = [] for k in cateManual: -- GitLab