muban.js 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. var mubanDict = { // 模板字典
  2. mxpro:{
  3. title:'',
  4. host:'',
  5. // homeUrl:'/',
  6. url:'/vodshow/fyclass--------fypage---.html',
  7. searchUrl:'/vodsearch/**----------fypage---.html',
  8. searchable:2,//是否启用全局搜索,
  9. quickSearch:0,//是否启用快速搜索,
  10. filterable:0,//是否启用分类筛选,
  11. headers:{//网站的请求头,完整支持所有的,常带ua和cookies
  12. 'User-Agent':'MOBILE_UA',
  13. // "Cookie": "searchneed=ok"
  14. },
  15. class_parse:'.navbar-items li:gt(2):lt(8);a&&Text;a&&href;/(\\d+).html',
  16. play_parse:true,
  17. lazy:'',
  18. limit:6,
  19. 推荐:'.tab-list.active;a.module-poster-item.module-item;.module-poster-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href',
  20. double:true, // 推荐内容是否双层定位
  21. 一级:'body a.module-poster-item.module-item;a&&title;.lazyload&&data-original;.module-item-note&&Text;a&&href',
  22. 二级:{"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"},
  23. 搜索:'body .module-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href;.module-info-item-content&&Text',
  24. },
  25. 首图:{
  26. title:'',
  27. host:'',
  28. url:'/vodshow/fyclass--------fypage---/',
  29. searchUrl:'/vodsearch/**----------fypage---.html',
  30. searchable:2,//是否启用全局搜索,
  31. quickSearch:0,//是否启用快速搜索,
  32. filterable:0,//是否启用分类筛选,
  33. headers:{//网站的请求头,完整支持所有的,常带ua和cookies
  34. 'User-Agent':'MOBILE_UA',
  35. // "Cookie": "searchneed=ok"
  36. },
  37. class_parse:'.myui-header__menu li.hidden-sm:gt(0):lt(5);a&&Text;a&&href;/(\\d+).html',
  38. play_parse:true,
  39. lazy:'',
  40. limit:6,
  41. 推荐:'ul.myui-vodlist.clearfix;li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
  42. double:true, // 推荐内容是否双层定位
  43. 一级:'.myui-vodlist li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
  44. 二级:{"title":".myui-content__detail .title&&Text;.myui-content__detail p:eq(-2)&&Text","img":".myui-content__thumb .lazyload&&data-original","desc":".myui-content__detail p:eq(0)&&Text;.myui-content__detail p:eq(1)&&Text;.myui-content__detail p:eq(2)&&Text","content":".content&&Text","tabs":".nav-tabs:eq(0) li","lists":".myui-content__list:eq(#id) li"},
  45. 搜索:'#searchList li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
  46. },
  47. 首图2:{
  48. title:'',
  49. host:'',
  50. url:'/list/fyclass-fypage.html',
  51. searchUrl:'/vodsearch/**----------fypage---.html',
  52. // headers: {
  53. // 'User-Agent': MOBILE_UA
  54. // },
  55. // play_parse:true,
  56. // lazy:'',
  57. class_parse: 'body&&.stui-header__menu .dropdown li:gt(0):lt(5);a&&Text;a&&href;.*/(.*?).html',
  58. 一级: '.stui-vodlist li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
  59. 推荐:'ul.stui-vodlist.clearfix;body&&li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href',
  60. 二级:{"title":".stui-content__detail .title&&Text;.stui-content__detail p:eq(-2)&&Text","img":".stui-content__thumb .lazyload&&data-original","desc":".stui-content__detail p:eq(0)&&Text;.stui-content__detail p:eq(1)&&Text;.stui-content__detail p:eq(2)&&Text","content":".detail&&Text","tabs":"body&&h3.title","lists":".stui-content__playlist,#id&&li"},
  61. double:true, // 推荐内容是否双层定位
  62. //搜索:'ul.stui-vodlist__media:eq(0) li,ul.stui-vodlist:eq(0) li,#searchList li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
  63. 搜索:'body&&ul.stui-vodlist__media&&li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
  64. // cate_exclude: '首页|留言|APP|下载|资讯|新闻|动态',
  65. // tab_exclude: '猜你|喜欢|APP|下载|剧情',
  66. },
  67. vfed:{
  68. title:'',
  69. host:'',
  70. url:'/index.php/vod/show/id/fyclass/page/fypage.html',
  71. searchUrl:'/index.php/vod/search/page/fypage/wd/**.html',
  72. searchable:2,//是否启用全局搜索,
  73. quickSearch:0,//是否启用快速搜索,
  74. filterable:0,//是否启用分类筛选,
  75. headers:{
  76. 'User-Agent':'UC_UA',
  77. },
  78. // class_parse:'.fed-pops-navbar&&ul.fed-part-rows&&a.fed-part-eone:gt(0):lt(5);a&&Text;a&&href;.*/(.*?).html',
  79. class_parse:'.fed-pops-navbar&&ul.fed-part-rows&&a;a&&Text;a&&href;.*/(.*?).html',
  80. play_parse:true,
  81. lazy:'',
  82. limit:6,
  83. 推荐:'ul.fed-list-info.fed-part-rows;li;a.fed-list-title&&Text;a&&data-original;.fed-list-remarks&&Text;a&&href',
  84. double:true, // 推荐内容是否双层定位
  85. 一级:'.fed-list-info&&li;a.fed-list-title&&Text;a&&data-original;.fed-list-remarks&&Text;a&&href',
  86. 二级:{"title":"h1.fed-part-eone&&Text;.fed-deta-content&&.fed-part-rows&&li&&Text","img":".fed-list-info&&a&&data-original","desc":".fed-deta-content&&.fed-part-rows&&li:eq(1)&&Text;.fed-deta-content&&.fed-part-rows&&li:eq(2)&&Text;.fed-deta-content&&.fed-part-rows&&li:eq(3)&&Text","content":".fed-part-esan&&Text","tabs":".fed-drop-boxs&&.fed-part-rows&&li","lists":".fed-play-item:eq(#id)&&ul:eq(1)&&li"},
  87. 搜索:'.fed-deta-info;h1&&Text;.lazyload&&data-original;.fed-list-remarks&&Text;a&&href;.fed-deta-content&&Text',
  88. },
  89. 海螺3:{
  90. title:'',
  91. host:'',
  92. searchUrl:'/v_search/**----------fypage---.html',
  93. url:'/vod_____show/fyclass--------fypage---.html',
  94. headers:{
  95. 'User-Agent':'MOBILE_UA'
  96. },
  97. timeout:5000,
  98. class_parse:'body&&.hl-nav li:gt(0);a&&Text;a&&href;.*/(.*?).html',
  99. cate_exclude:'明星|专题|最新|排行',
  100. limit:40,
  101. play_parse:true,
  102. lazy:'',
  103. 推荐:'.hl-vod-list;li;a&&title;a&&data-original;.remarks&&Text;a&&href',
  104. double:true,
  105. 一级:'.hl-vod-list&&.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
  106. 二级:{"title":".hl-infos-title&&Text;.hl-text-conch&&Text","img":".hl-lazy&&data-original","desc":".hl-infos-content&&.hl-text-conch&&Text","content":".hl-content-text&&Text","tabs":".hl-tabs&&a","lists":".hl-plays-list:eq(#id)&&li"},
  107. 搜索:'.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
  108. searchable:2,//是否启用全局搜索,
  109. quickSearch:0,//是否启用快速搜索,
  110. filterable:0,//是否启用分类筛选,
  111. },
  112. 海螺2:{
  113. title:'',
  114. host:'',
  115. searchUrl:'/index.php/vod/search/page/fypage/wd/**/',
  116. url:'/index.php/vod/show/id/fyclass/page/fypage/',
  117. headers:{
  118. 'User-Agent':'MOBILE_UA'
  119. },
  120. timeout:5000,
  121. class_parse:'#nav-bar li;a&&Text;a&&href;id/(.*?)/',
  122. limit:40,
  123. play_parse:true,
  124. lazy:'',
  125. 推荐:'.list-a.size;li;a&&title;.lazy&&data-original;.bt&&Text;a&&href',
  126. double:true,
  127. 一级:'.list-a&&li;a&&title;.lazy&&data-original;.list-remarks&&Text;a&&href',
  128. 二级:{"title":"h2&&Text;.deployment&&Text","img":".lazy&&data-original","desc":".deployment&&Text","content":".ec-show&&Text","tabs":"#tag&&a","lists":".play_list_box:eq(#id)&&li"},
  129. 搜索:'.search-list;a&&title;.lazy&&data-original;.deployment&&Text;a&&href',
  130. searchable:2,//是否启用全局搜索,
  131. quickSearch:0,//是否启用快速搜索,
  132. filterable:0,//是否启用分类筛选,
  133. },
  134. };
  135. var muban = JSON.parse(JSON.stringify(mubanDict));
  136. export default {
  137. muban:muban
  138. }