提交 4d0c204c 编写于 作者: H hjdhnx

增加可乐源

上级 d1cde341
var rule = {
title:'cokemv',
host:'https://cokemv.me',
// homeUrl:'/',
url:'/vodshow/fyclass--------fypage---.html',
searchUrl:'/vodsearch/**----------fypage---.html',
headers:{
'User-Agent':'MOBILE_UA',
"Cookie": "showBtn=true;PHPSESSID=58nhbq5r54jivukrk4o27dn7m6"
},
timeout:5000,
class_parse:'.navbar-items li:gt(1):lt(7);a&&Text;a&&href;/(\\d+).html',
limit:10,
推荐:'.tab-list.active;a.module-poster-item.module-item;.module-poster-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href',
double:true, // 推荐内容是否双层定位
一级:'body a.module-poster-item.module-item;a&&title;.lazyload&&data-original;.module-item-note&&Text;a&&href',
二级:{"title":"h1&&Text;.module-info-tag&&Text","img":".lazyload&&data-original","desc":".module-info-item:eq(1)&&Text;.module-info-item:eq(2)&&Text;.module-info-item:eq(3)&&Text","content":".module-info-introduction&&Text","tabs":".module-tab-item","lists":".module-play-list:eq(#id) a"},
搜索:'body .module-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href;.module-info-item-content&&Text',
}
\ No newline at end of file
......@@ -443,16 +443,16 @@ if __name__ == '__main__':
from utils import parser
# js_path = f'js/玩偶姐姐.js'
# js_path = f'js/555影视.js'
js_path = f'js/喵喵.js'
js_path = f'js/cokemv.js'
ctx, js_code = parser.runJs(js_path)
rule = ctx.eval('rule')
cms = CMS(rule)
print(cms.title)
print(cms.homeContent())
# print(cms.homeContent())
# print(cms.categoryContent('5',1))
# print(cms.categoryContent('latest',1))
# print(cms.detailContent(['https://www.2345ka.com/v/45499.html']))
# print(cms.detailContent(1,['https://www.2345ka.com/v/78499.html']))
# print(cms.detailContent(1,['https://cokemv.me/voddetail/40573.html']))
# cms.categoryContent('dianying',1)
# print(cms.detailContent(['67391']))
print(cms.searchContent('斗罗大陆'))
\ No newline at end of file
......@@ -43,6 +43,14 @@
"searchable": 1,
"quickSearch": 1,
"filterable": 1
},{
"key":"dr_ckmv",
"name":"cokemv(道长)",
"type":1,
"api":"http://cms.nokia.press/vod?rule=cokemv",
"searchable": 1,
"quickSearch": 1,
"filterable": 1
}
],
"parses":[
......
......@@ -44,6 +44,14 @@
"searchable": 1,
"quickSearch": 1,
"filterable": 1
},{
"key":"dr_ckmv",
"name":"cokemv(道长)",
"type":1,
"api":"http://localhost:5705/vod?rule=cokemv",
"searchable": 1,
"quickSearch": 1,
"filterable": 1
}
],
"parses":[
......
{
"sites":[
{
"key":"dr_yanaifei",
"name":"鸭奈飞(道长)",
"type":1,
"api":"http://192.168.10.99:5705/vod?rule=鸭奈飞",
"searchable": 1,
"quickSearch": 1,
"filterable": 1
},
{
"key":"dr_lmys",
"name":"蓝莓影视(道长)",
"type":1,
"api":"http://192.168.10.99:5705/vod?rule=蓝莓影视",
"searchable": 0,
"quickSearch": 0,
"filterable": 1
},
{
"key":"dr_555",
"name":"555影视(道长)",
"type":1,
"api":"http://192.168.10.99:5705/vod?rule=555影视",
"searchable": 1,
"quickSearch": 1,
"filterable": 1
},
{
"key":"dr_wojj",
"name":"玩偶姐姐(道长)",
"type":1,
"api":"http://192.168.10.99:5705/vod?rule=玩偶姐姐",
"searchable": 0,
"quickSearch": 0,
"filterable": 0
}
],
"parses":[
{"name":"解析聚合","type":3,"url":"Demo"},
{"name":"Json并发","type":2,"url":"Parallel"},
{"name":"Json轮询","type":2,"url":"Sequence"},
{"name":"油果","type":1,"url":"http://json.youguo520.top/fufeng/?url=","ext":{"flag":["qiyi","爱奇艺","奇艺","qq","腾讯","youku","优酷","pptv","PPTV","letv","乐视","bilibili","哔哩哔哩","哔哩","mgtv","芒果"],"header":{"User-Agent":"Dart/2.14 (dart:io)"}}},
{"name":"江湖","type":1,"url":"http://jx.vipmv.co/?url=","ext":{"flag":["qq","qiyi","mgtv","youku","letv","sohu","xigua","cntv","1905"],"header":{"User-Agent":"Dart/2.14 (dart:io)"}}}
],
"flags":["youku","qq","iqiyi","qiyi","letv","sohu","tudou","pptv","mgtv","wasu","bilibili","renrenmi"],
"ijk":[
{"group":"软解码","options":[
{"category":4,"name":"opensles","value":"0"},
{"category":4,"name":"overlay-format","value":"842225234"},
{"category":4,"name":"framedrop","value":"1"},
{"category":4,"name":"soundtouch","value":"1"},
{"category":4,"name":"start-on-prepared","value":"1"},
{"category":1,"name":"http-detect-range-support","value":"0"},
{"category":1,"name":"fflags","value":"fastseek"},
{"category":2,"name":"skip_loop_filter","value":"48"},
{"category":4,"name":"reconnect","value":"1"},
{"category":4,"name":"enable-accurate-seek","value":"0"},
{"category":4,"name":"mediacodec","value":"0"},
{"category":4,"name":"mediacodec-auto-rotate","value":"0"},
{"category":4,"name":"mediacodec-handle-resolution-change","value":"0"},
{"category":4,"name":"mediacodec-hevc","value":"0"},
{"category":1,"name":"dns_cache_timeout","value":"600000000"}
]},
{"group":"硬解码","options":[
{"category":4,"name":"opensles","value":"0"},
{"category":4,"name":"overlay-format","value":"842225234"},
{"category":4,"name":"framedrop","value":"1"},
{"category":4,"name":"soundtouch","value":"1"},
{"category":4,"name":"start-on-prepared","value":"1"},
{"category":1,"name":"http-detect-range-support","value":"0"},
{"category":1,"name":"fflags","value":"fastseek"},
{"category":2,"name":"skip_loop_filter","value":"48"},
{"category":4,"name":"reconnect","value":"1"},
{"category":4,"name":"enable-accurate-seek","value":"0"},
{"category":4,"name":"mediacodec","value":"1"},
{"category":4,"name":"mediacodec-auto-rotate","value":"1"},
{"category":4,"name":"mediacodec-handle-resolution-change","value":"1"},
{"category":4,"name":"mediacodec-hevc","value":"1"},
{"category":1,"name":"dns_cache_timeout","value":"600000000"}
]}
],
"ads":["mimg.0c1q0l.cn","www.googletagmanager.com","www.google-analytics.com","mc.usihnbcq.cn","mg.g1mm3d.cn","mscs.svaeuzh.cn","cnzz.hhttm.top","tp.vinuxhome.com","cnzz.mmstat.com","www.baihuillq.com","s23.cnzz.com","z3.cnzz.com","c.cnzz.com","stj.v1vo.top","z12.cnzz.com","img.mosflower.cn","tips.gamevvip.com","ehwe.yhdtns.com","xdn.cqqc3.com","www.jixunkyy.cn","sp.chemacid.cn","hm.baidu.com","s9.cnzz.com","z6.cnzz.com","um.cavuc.com","mav.mavuz.com","wofwk.aoidf3.com","z5.cnzz.com","xc.hubeijieshikj.cn","tj.tianwenhu.com","xg.gars57.cn","k.jinxiuzhilv.com","cdn.bootcss.com","ppl.xunzhuo123.com","xomk.jiangjunmh.top","img.xunzhuo123.com","z1.cnzz.com","s13.cnzz.com","xg.huataisangao.cn","z7.cnzz.com","xg.huataisangao.cn","z2.cnzz.com","s96.cnzz.com","q11.cnzz.com","thy.dacedsfa.cn","xg.whsbpw.cn","s19.cnzz.com","z8.cnzz.com","s4.cnzz.com","f5w.as12df.top","ae01.alicdn.com","www.92424.cn","k.wudejia.com","vivovip.mmszxc.top","qiu.xixiqiu.com","cdnjs.hnfenxun.com","cms.qdwght.com"]
}
......@@ -11,6 +11,7 @@
- [ ] 8.模板自定义filter过滤
- [X] 9.网页端显示缓存的规则以及提供点击清除缓存操作
- [X] 10.增加本地配置文件,增加指定编码。
- [ ] 11.待开发模板渲染器,一键生成猫配置文件。
###### 特性说明
1. 参考了海阔视界dr模板设计思路
2. 参考tv_box的t4项目思路重新设计了cms接口
......@@ -53,6 +54,8 @@ var rule = {
"Cookie": "searchneed=ok"
},
timeout:5000,//网站的全局请求超时,默认是3000毫秒
class_name:'电影&电视剧&动漫&综艺',//静态分类名称拼接
class_url:'1&2&3&4',//静态分类标识拼接
//动态分类获取 列表;标题;链接;正则提取 不需要正则的时候后面别加分号
class_parse:'#side-menu:lt(1) li;a&&Text;a&&href;com/(.*?)/',
// 首页推荐显示数量
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册