跑TV.js 1.8 KB

123456789101112131415161718192021222324252627
  1. var rule = {
  2. title:'跑TV',
  3. host:'https://paotv.net',
  4. // homeUrl:'/',
  5. url:'/show/fyclass/page/fypage.html',
  6. //searchUrl:'/search-**----------fypage---/',
  7. searchable:0,//是否启用全局搜索,
  8. quickSearch:0,//是否启用快速搜索,
  9. filterable:0,//是否启用分类筛选,
  10. headers:{//网站的请求头,完整支持所有的,常带ua和cookies
  11. 'User-Agent':'MOBILE_UA',
  12. // "Cookie": "searchneed=ok"
  13. },
  14. //class_parse:'.nav-menu-items&&li;a&&title;a&&href;/(\\d+).html',
  15. class_name:'国产&亚洲&欧美&伦理&动漫',
  16. class_url:'1&2&3&21&22',
  17. play_parse:true,
  18. lazy:'',
  19. limit:6,
  20. //推荐:'a.module-poster-item.module-item;a&&title;img&&data-original;.module-item-note&&Text;a&&href',
  21. 推荐:'.tab-list.active;.module-poster-item.module-item;.module-poster-item-title&&Text;img&&data-original;.module-item-note&&Text;a&&href',
  22. double:true, // 推荐内容是否双层定位
  23. 一级:'.module-poster-item.module-item;a&&title;img&&data-original;.module-item-note&&Text;a&&href',
  24. 二级:{"title":"h1&&Text;.module-info-tag-link:eq(2)&&Text","img":".module-item-pic&&img&&data-original","desc":".module-info-content&&.module-info-item:eq(-2)&&Text;.module-info-content&&.module-info-item:eq(-4)&&Text;.module-info-content&&.module-info-item:eq(5)&&Text;.module-info-content&&.module-info-item:eq(3)&&.module-info-item-content&&Text;.module-info-content&&.module-info-item:eq(1)&&.module-info-item-content&&Text","content":".module-info-introduction-content&&Text","tabs":".module-tab-items-box:eq(0)&&.module-tab-item","lists":".module-list:eq(#id)&&.module-play-list-content a"},
  25. //搜索:'.module-card-item.module-item;.module-card-item-title&&Text;img&&data-src;.module-item-note&&Text;a.play-btn-o&&href',
  26. }