hjdhnx/dr_py

请教下没有详情页的网站,二级要怎么才能继承一级的标题和图片

Opened this issue · 3 comments

a6680 commented

下面是我写好了的,但是二级的标题和图片有问题,跪求写法。
另外,项目中的Auete源也有问题,使用的写法 tab_text":"h2--span&&Text", 会出现个别资源获取不到播放源和集数,原播放源标题太长了,站长换了新域名 https://auete.art/ 挂梯打不开

var rule = {
    title:'人人影视',
    host:'https://www.renren.pro',
    homeUrl:'/',
    url:'/list/fyclass?page=fypage',
    searchUrl:'/search?wd=**',
    headers:{'User-Agent':'MOBILE_UA'},
    timeout:5000,
    class_name:'影视库',
    class_url:'all',
    play_parse:true,
    limit:6,
    double:true,
    推荐:'*',
    一级:'.module-items&&.module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href',
    二级:{
        "title":".thesis-wrap&&Text;.video-info-aux&&a&&Text",
        "img":"",
        "desc":";.video-info-aux&&a:eq(2)&&Text;.video-info-aux&&a:eq(1)&&Text;",
        "content":".title-info&&Text",
        "tabs":"js:TABS=['在线播放']",
        "lists":".module-blocklist&&a"
    },
    搜索:'.module-items&&.module-search-item;h3&&Text;.lazyload&&data-src;.video-serial&&Text;a&&href',
}
hjdhnx commented

,就行了。具体搜索查看二级规则是一个

hjdhnx commented

跟推荐一样

a6680 commented

跟推荐一样

二级:'*', 是这样填吗,可是这样的话就获取不到集数和简介了