提交 1e56b979 编写于 作者: H hjdhnx

增加西瓜源

上级 a58cba7f
......@@ -112,7 +112,7 @@ class CMS:
# print(headers)
self.headers = headers
self.host = host
self.homeUrl = urljoin(host,homeUrl) if host and homeUrl else homeUrl
self.homeUrl = urljoin(host,homeUrl) if host and homeUrl else homeUrl or host
if url.find('[') >-1 and url.find(']') > -1:
u1 = url.split('[')[0]
u2 = url.split('[')[1].split(']')[0]
......@@ -369,8 +369,8 @@ class CMS:
# print(self.url)
print(self.headers)
has_cache = False
# print(self.homeUrl)
if self.homeUrl.startswith('http'):
# print(self.homeUrl)
# print(self.class_parse)
try:
if self.class_parse:
......@@ -638,10 +638,11 @@ class CMS:
if p == '*':
vod = self.blank_vod()
vod['vod_play_from'] = '道长在线'
vod['vod_remarks'] = self.play_url+detailUrl
vod['vod_remarks'] = detailUrl
vod['vod_actor'] = '没有二级,只有一级链接直接嗅探播放'
vod['vod_content'] = detailUrl
vod['vod_play_url'] = '嗅探播放$'+detailUrl
vod['vod_play_url'] = '嗅探播放$'+self.play_url+detailUrl
print(vod)
return vod
if not isinstance(p,dict) and not isinstance(p,str) and not str(p).startswith('js:'):
......
var rule = {
title:'吸瓜',
host:'https://xgsp.tv',
// homeUrl:'',
url:'/list/?fyclass-fypage.html',
headers:{
'User-Agent':'MOBILE_UA'
},
timeout:5000,
class_parse:'.wap-roll&&li;a&&Text;a&&href;(\\d+).html',
cate_exclude:'独家',
limit:5,
play_parse:true,
lazy:'js:let html=request(input);let a=html.match(/var now="(.*?)"/)[1];input=a',
推荐:'ul.row.row-space7.row-m-space7.tx-column-5.tx-column-m-2;li;a&&title;img&&src;.ico-right&&Text;a&&href',
double:true,
一级:'.tx-column-m-2.mb20&&li;h2&&Text;img&&src;.ico-right&&Text;a&&href',
二级:'*',
}
\ No newline at end of file
无法预览此类型文件
......@@ -46,6 +46,8 @@
[dockerfile教程](https://blog.csdn.net/qq_46158060/article/details/125718218)
[获取本地设备信息](https://blog.csdn.net/cui_yonghua/article/details/125508991)
[获取本地设备信息](https://m.jb51.net/article/140716.htm)
###### 2022/09/09
- [X] 1.增加西瓜源,修复一级不支持lazy的bug
###### 2022/09/08
- [X] 1.升级到3.2.9,支持自动合并自定义用户配置(内置t4测试源)
- [X] 2.升级到3.3.0,增加奇珍异兽源
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册