模板.js 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. if (typeof Object.assign != 'function') {
  2. Object.assign = function () {
  3. var target = arguments[0];
  4. for (var i = 1; i < arguments.length; i++) {
  5. var source = arguments[i];
  6. for (var key in source) {
  7. if (Object.prototype.hasOwnProperty.call(source, key)) {
  8. target[key] = source[key];
  9. }
  10. }
  11. }
  12. return target;
  13. };
  14. }
  15. var mubanDict = { // 模板字典
  16. mxpro:{
  17. title:'',
  18. host:'',
  19. // homeUrl:'/',
  20. url:'/vodshow/fyclass--------fypage---.html',
  21. searchUrl:'/vodsearch/**----------fypage---.html',
  22. searchable:2,//是否启用全局搜索,
  23. quickSearch:0,//是否启用快速搜索,
  24. filterable:0,//是否启用分类筛选,
  25. headers:{//网站的请求头,完整支持所有的,常带ua和cookies
  26. 'User-Agent':'MOBILE_UA',
  27. // "Cookie": "searchneed=ok"
  28. },
  29. class_parse:'.navbar-items li:gt(2):lt(8);a&&Text;a&&href;/(\\d+).html',
  30. play_parse:true,
  31. lazy:'',
  32. limit:6,
  33. 推荐:'.tab-list.active;a.module-poster-item.module-item;.module-poster-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href',
  34. double:true, // 推荐内容是否双层定位
  35. 一级:'body a.module-poster-item.module-item;a&&title;.lazyload&&data-original;.module-item-note&&Text;a&&href',
  36. 二级:{"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"},
  37. 搜索:'body .module-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href;.module-info-item-content&&Text',
  38. },
  39. mxone5:{
  40. title:'',
  41. host:'',
  42. url:'/show/fyclass--------fypage---.html',
  43. searchUrl:'/search/**----------fypage---.html',
  44. searchable:2,//是否启用全局搜索,
  45. quickSearch:0,//是否启用快速搜索,
  46. filterable:0,//是否启用分类筛选,
  47. class_parse:'.nav-menu-items&&li;a&&Text;a&&href;.*/(.*?).html',
  48. play_parse:true,
  49. lazy:'',
  50. limit:6,
  51. 推荐:'.module-list;.module-items&&.module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href',
  52. double:true, // 推荐内容是否双层定位
  53. 一级:'.module-items .module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href',
  54. 二级:{"title":"h1&&Text;.tag-link&&Text","img":".module-item-pic&&img&&data-src","desc":".video-info-items:eq(0)&&Text;.video-info-items:eq(1)&&Text;.video-info-items:eq(2)&&Text;.video-info-items:eq(3)&&Text","content":".vod_content&&Text","tabs":".module-tab-item","lists":".module-player-list:eq(#id)&&.scroll-content&&a"},
  55. 搜索:'.module-items .module-search-item;a&&title;img&&data-src;.video-serial&&Text;a&&href',
  56. },
  57. 首图:{
  58. title:'',
  59. host:'',
  60. url:'/vodshow/fyclass--------fypage---/',
  61. searchUrl:'/vodsearch/**----------fypage---.html',
  62. searchable:2,//是否启用全局搜索,
  63. quickSearch:0,//是否启用快速搜索,
  64. filterable:0,//是否启用分类筛选,
  65. headers:{//网站的请求头,完整支持所有的,常带ua和cookies
  66. 'User-Agent':'MOBILE_UA',
  67. // "Cookie": "searchneed=ok"
  68. },
  69. class_parse:'.myui-header__menu li.hidden-sm:gt(0):lt(5);a&&Text;a&&href;/(\\d+).html',
  70. play_parse:true,
  71. lazy:'',
  72. limit:6,
  73. 推荐:'ul.myui-vodlist.clearfix;li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
  74. double:true, // 推荐内容是否双层定位
  75. 一级:'.myui-vodlist li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
  76. 二级:{"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"},
  77. 搜索:'#searchList li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
  78. },
  79. 首图2:{
  80. title:'',
  81. host:'',
  82. url:'/list/fyclass-fypage.html',
  83. searchUrl:'/vodsearch/**----------fypage---.html',
  84. searchable:2,//是否启用全局搜索,
  85. quickSearch:0,//是否启用快速搜索,
  86. filterable:0,//是否启用分类筛选,
  87. headers:{
  88. 'User-Agent':'UC_UA',
  89. // "Cookie": ""
  90. },
  91. // class_parse:'.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;/(\\d+).html',
  92. class_parse:'.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;.*/(.*?).html',
  93. play_parse:true,
  94. lazy:'',
  95. limit:6,
  96. 推荐:'ul.stui-vodlist.clearfix;li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href',
  97. double:true, // 推荐内容是否双层定位
  98. 一级:'.stui-vodlist li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
  99. 二级:{"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":".stui-vodlist__head h3","lists":".stui-content__playlist:eq(#id) li"},
  100. 搜索:'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',
  101. 搜索1:'ul.stui-vodlist&&li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
  102. 搜索2:'ul.stui-vodlist__media&&li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
  103. },
  104. vfed:{
  105. title:'',
  106. host:'',
  107. url:'/index.php/vod/show/id/fyclass/page/fypage.html',
  108. searchUrl:'/index.php/vod/search/page/fypage/wd/**.html',
  109. searchable:2,//是否启用全局搜索,
  110. quickSearch:0,//是否启用快速搜索,
  111. filterable:0,//是否启用分类筛选,
  112. headers:{
  113. 'User-Agent':'UC_UA',
  114. },
  115. // class_parse:'.fed-pops-navbar&&ul.fed-part-rows&&a.fed-part-eone:gt(0):lt(5);a&&Text;a&&href;.*/(.*?).html',
  116. class_parse:'.fed-pops-navbar&&ul.fed-part-rows&&a;a&&Text;a&&href;.*/(.*?).html',
  117. play_parse:true,
  118. lazy:'',
  119. limit:6,
  120. 推荐:'ul.fed-list-info.fed-part-rows;li;a.fed-list-title&&Text;a&&data-original;.fed-list-remarks&&Text;a&&href',
  121. double:true, // 推荐内容是否双层定位
  122. 一级:'.fed-list-info&&li;a.fed-list-title&&Text;a&&data-original;.fed-list-remarks&&Text;a&&href',
  123. 二级:{"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"},
  124. 搜索:'.fed-deta-info;h1&&Text;.lazyload&&data-original;.fed-list-remarks&&Text;a&&href;.fed-deta-content&&Text',
  125. },
  126. 海螺3:{
  127. title:'',
  128. host:'',
  129. searchUrl:'/v_search/**----------fypage---.html',
  130. url:'/vod_____show/fyclass--------fypage---.html',
  131. headers:{
  132. 'User-Agent':'MOBILE_UA'
  133. },
  134. timeout:5000,
  135. class_parse:'body&&.hl-nav li:gt(0);a&&Text;a&&href;.*/(.*?).html',
  136. cate_exclude:'明星|专题|最新|排行',
  137. limit:40,
  138. play_parse:true,
  139. lazy:'',
  140. 推荐:'.hl-vod-list;li;a&&title;a&&data-original;.remarks&&Text;a&&href',
  141. double:true,
  142. 一级:'.hl-vod-list&&.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
  143. 二级:{"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"},
  144. 搜索:'.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
  145. searchable:2,//是否启用全局搜索,
  146. quickSearch:0,//是否启用快速搜索,
  147. filterable:0,//是否启用分类筛选,
  148. },
  149. 海螺2:{
  150. title:'',
  151. host:'',
  152. searchUrl:'/index.php/vod/search/page/fypage/wd/**/',
  153. url:'/index.php/vod/show/id/fyclass/page/fypage/',
  154. headers:{
  155. 'User-Agent':'MOBILE_UA'
  156. },
  157. timeout:5000,
  158. class_parse:'#nav-bar li;a&&Text;a&&href;id/(.*?)/',
  159. limit:40,
  160. play_parse:true,
  161. lazy:'',
  162. 推荐:'.list-a.size;li;a&&title;.lazy&&data-original;.bt&&Text;a&&href',
  163. double:true,
  164. 一级:'.list-a&&li;a&&title;.lazy&&data-original;.list-remarks&&Text;a&&href',
  165. 二级:{"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"},
  166. 搜索:'.search-list;a&&title;.lazy&&data-original;.deployment&&Text;a&&href',
  167. searchable:2,//是否启用全局搜索,
  168. quickSearch:0,//是否启用快速搜索,
  169. filterable:0,//是否启用分类筛选,
  170. },
  171. };
  172. var muban = JSON.parse(JSON.stringify(mubanDict));
  173. export default muban;