提交 dc85ec77 编写于 作者: H hjdhnx

调试修复低端影视的基础部分定位

上级 4b6bcdb8
无法预览此类型文件
......@@ -2,8 +2,8 @@ var rule={
title:'ddys',
host:'https://ddys.tv',
// homeUrl:'/',
url:'https://ddys.tv/category/fyclass/page/fypage/',
searchUrl:'/search.html?wd=**',
url:'/fyclass/page/fypage/',
searchUrl:'/?s=**&post_type=post',
searchable:2,//是否启用全局搜索,
quickSearch:0,//是否启用快速搜索,
filterable:0,//是否启用分类筛选,
......@@ -11,15 +11,17 @@ var rule={
'User-Agent':'MOBILE_UA',
// "Cookie": "searchneed=ok"
},
class_name:'电影&剧集&动画',
class_url:'movie&airing&anime',
cate_exclude:'解析|动态',
// class_name:'电影&剧集&动画',
// class_url:'movie&airing&anime',
class_parse:'#primary-menu li.menu-item;a&&Text;a&&href;\.tv/(.*)',
cate_exclude:'站长|^其他$|关于|^电影$|^剧集$|^类型$',
play_parse:true,
lazy:'',
limit:6,
//推荐:'.indexShowBox;ul&&li;a&&title;img&&data-src;.s1&&Text;a&&href',
double:true, // 推荐内容是否双层定位
一级:'.post-box-list&&article;a:eq(-1)&&Text;.post-box-image&&style;a:eq(0)&&Text;a:eq(-1)&&href',
二级:{"title":"h1&&Text;.content-rt&&p:eq(0)&&Text","img":".img&&img&&data-src","desc":".content-rt&&p:eq(1)&&Text;.content-rt&&p:eq(2)&&Text;.content-rt&&p:eq(3)&&Text;.content-rt&&p:eq(4)&&Text;.content-rt&&p:eq(5)&&Text","content":".zkjj_a&&Text","tabs":".py-tabs&&option","lists":".player:eq(#id) li"},
搜索:'.sr_lists&&ul&&li;h3&&Text;img&&data-src;.int&&p:eq(0)&&Text;a&&href',
二级:{"title":".post-title&&Text;.cat-links&&Text","img":".doulist-item&&img&&data-cfsrc","desc":".published&&Text","content":".abstract&&Text","tabs":".py-tabs&&option","lists":".player:eq(#id) li"},
搜索:'#main&&article;.post-title&&Text;;.published&&Text;a&&href',
推荐:'*'
}
\ No newline at end of file
3.9.7beta3
\ No newline at end of file
3.9.7beta4
\ No newline at end of file
......@@ -968,21 +968,27 @@ function homeParse(homeObj) {
if (homeObj.class_parse) {
let p = homeObj.class_parse.split(';');
if (p.length >= 4) {
let _ps = parseTags.getParse(p[0]);
_pdfa = _ps.pdfa;
_pdfh = _ps.pdfh;
_pd = _ps.pd;
MY_URL = rule.url;
if (p.length >= 3) { // 可以不写正则
try {
let html = getHtml(homeObj.MY_URL);
if (html) {
homeHtmlCache = html;
let list = pdfa(html, p[0]);
let list = _pdfa(html, p[0]);
if (list && list.length > 0) {
list.forEach((it,idex) => {
try {
let name = pdfh(it, p[1]);
let name = _pdfh(it, p[1]);
if (homeObj.cate_exclude && (new RegExp(homeObj.cate_exclude).test(name))) {
return;
}
let url = pdfh(it, p[2]);
if (p[3]) {
// let url = pdfh(it, p[2]);
let url = _pd(it, p[2]);
if (p.length > 3 && p[3]) {
let exp = new RegExp(p[3]);
url = url.match(exp)[1];
}
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册