qyg2.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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. function getMubans() {
  16. var mubanDict = { // 模板字典
  17. mxpro: {
  18. title: '',
  19. host: '',
  20. // homeUrl:'/',
  21. url: '/vodshow/fyclass--------fypage---.html',
  22. searchUrl: '/vodsearch/**----------fypage---.html',
  23. searchable: 2,//是否启用全局搜索,
  24. quickSearch: 0,//是否启用快速搜索,
  25. filterable: 0,//是否启用分类筛选,
  26. headers: {//网站的请求头,完整支持所有的,常带ua和cookies
  27. 'User-Agent': 'MOBILE_UA',
  28. // "Cookie": "searchneed=ok"
  29. },
  30. class_parse: '.navbar-items li:gt(2):lt(8);a&&Text;a&&href;/(\\d+).html',
  31. play_parse: true,
  32. lazy: '',
  33. limit: 6,
  34. 推荐: '.tab-list.active;a.module-poster-item.module-item;.module-poster-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href',
  35. double: true, // 推荐内容是否双层定位
  36. 一级: 'body a.module-poster-item.module-item;a&&title;.lazyload&&data-original;.module-item-note&&Text;a&&href',
  37. 二级: {
  38. "title": "h1&&Text;.module-info-tag&&Text",
  39. "img": ".lazyload&&data-original",
  40. "desc": ".module-info-item:eq(1)&&Text;.module-info-item:eq(2)&&Text;.module-info-item:eq(3)&&Text",
  41. "content": ".module-info-introduction&&Text",
  42. "tabs": ".module-tab-item",
  43. "lists": ".module-play-list:eq(#id) a"
  44. },
  45. 搜索: 'body .module-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href;.module-info-item-content&&Text',
  46. },
  47. mxone5: {
  48. title: '',
  49. host: '',
  50. url: '/show/fyclass--------fypage---.html',
  51. searchUrl: '/search/**----------fypage---.html',
  52. searchable: 2,//是否启用全局搜索,
  53. quickSearch: 0,//是否启用快速搜索,
  54. filterable: 0,//是否启用分类筛选,
  55. class_parse: '.nav-menu-items&&li;a&&Text;a&&href;.*/(.*?).html',
  56. play_parse: true,
  57. lazy: '',
  58. limit: 6,
  59. 推荐: '.module-list;.module-items&&.module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href',
  60. double: true, // 推荐内容是否双层定位
  61. 一级: '.module-items .module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href',
  62. 二级: {
  63. "title": "h1&&Text;.tag-link&&Text",
  64. "img": ".module-item-pic&&img&&data-src",
  65. "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",
  66. "content": ".vod_content&&Text",
  67. "tabs": ".module-tab-item",
  68. "lists": ".module-player-list:eq(#id)&&.scroll-content&&a"
  69. },
  70. 搜索: '.module-items .module-search-item;a&&title;img&&data-src;.video-serial&&Text;a&&href',
  71. },
  72. 首图: {
  73. title: '',
  74. host: '',
  75. url: '/vodshow/fyclass--------fypage---/',
  76. searchUrl: '/vodsearch/**----------fypage---.html',
  77. searchable: 2,//是否启用全局搜索,
  78. quickSearch: 0,//是否启用快速搜索,
  79. filterable: 0,//是否启用分类筛选,
  80. headers: {//网站的请求头,完整支持所有的,常带ua和cookies
  81. 'User-Agent': 'MOBILE_UA',
  82. // "Cookie": "searchneed=ok"
  83. },
  84. class_parse: '.myui-header__menu li.hidden-sm:gt(0):lt(5);a&&Text;a&&href;/(\\d+).html',
  85. play_parse: true,
  86. lazy: '',
  87. limit: 6,
  88. 推荐: 'ul.myui-vodlist.clearfix;li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
  89. double: true, // 推荐内容是否双层定位
  90. 一级: '.myui-vodlist li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
  91. 二级: {
  92. "title": ".myui-content__detail .title&&Text;.myui-content__detail p:eq(-2)&&Text",
  93. "img": ".myui-content__thumb .lazyload&&data-original",
  94. "desc": ".myui-content__detail p:eq(0)&&Text;.myui-content__detail p:eq(1)&&Text;.myui-content__detail p:eq(2)&&Text",
  95. "content": ".content&&Text",
  96. "tabs": ".nav-tabs:eq(0) li",
  97. "lists": ".myui-content__list:eq(#id) li"
  98. },
  99. 搜索: '#searchList li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
  100. },
  101. 首图2: {
  102. title: '',
  103. host: '',
  104. url: '/list/fyclass-fypage.html',
  105. searchUrl: '/vodsearch/**----------fypage---.html',
  106. searchable: 2,//是否启用全局搜索,
  107. quickSearch: 0,//是否启用快速搜索,
  108. filterable: 0,//是否启用分类筛选,
  109. headers: {
  110. 'User-Agent': 'UC_UA',
  111. // "Cookie": ""
  112. },
  113. // class_parse:'.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;/(\\d+).html',
  114. class_parse: '.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;.*/(.*?).html',
  115. play_parse: true,
  116. lazy: '',
  117. limit: 6,
  118. 推荐: 'ul.stui-vodlist.clearfix;li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href',
  119. double: true, // 推荐内容是否双层定位
  120. 一级: '.stui-vodlist li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
  121. 二级: {
  122. "title": ".stui-content__detail .title&&Text;.stui-content__detail p:eq(-2)&&Text",
  123. "img": ".stui-content__thumb .lazyload&&data-original",
  124. "desc": ".stui-content__detail p:eq(0)&&Text;.stui-content__detail p:eq(1)&&Text;.stui-content__detail p:eq(2)&&Text",
  125. "content": ".detail&&Text",
  126. "tabs": ".stui-vodlist__head h3",
  127. "lists": ".stui-content__playlist:eq(#id) li"
  128. },
  129. 搜索: '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',
  130. 搜索1: 'ul.stui-vodlist&&li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
  131. 搜索2: 'ul.stui-vodlist__media&&li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
  132. },
  133. 默认: {
  134. title: '',
  135. host: '',
  136. url: '/vodshow/fyclass--------fypage---.html',
  137. searchUrl: '/vodsearch/-------------.html?wd=**',
  138. searchable: 2,//是否启用全局搜索,
  139. quickSearch: 0,//是否启用快速搜索,
  140. filterable: 0,//是否启用分类筛选,
  141. headers: {
  142. 'User-Agent': 'MOBILE_UA',
  143. },
  144. play_parse: true,
  145. lazy: '',
  146. limit: 6,
  147. double: true, // 推荐内容是否双层定位
  148. },
  149. vfed: {
  150. title: '',
  151. host: '',
  152. url: '/index.php/vod/show/id/fyclass/page/fypage.html',
  153. searchUrl: '/index.php/vod/search/page/fypage/wd/**.html',
  154. searchable: 2,//是否启用全局搜索,
  155. quickSearch: 0,//是否启用快速搜索,
  156. filterable: 0,//是否启用分类筛选,
  157. headers: {
  158. 'User-Agent': 'UC_UA',
  159. },
  160. // class_parse:'.fed-pops-navbar&&ul.fed-part-rows&&a.fed-part-eone:gt(0):lt(5);a&&Text;a&&href;.*/(.*?).html',
  161. class_parse: '.fed-pops-navbar&&ul.fed-part-rows&&a;a&&Text;a&&href;.*/(.*?).html',
  162. play_parse: true,
  163. lazy: '',
  164. limit: 6,
  165. 推荐: 'ul.fed-list-info.fed-part-rows;li;a.fed-list-title&&Text;a&&data-original;.fed-list-remarks&&Text;a&&href',
  166. double: true, // 推荐内容是否双层定位
  167. 一级: '.fed-list-info&&li;a.fed-list-title&&Text;a&&data-original;.fed-list-remarks&&Text;a&&href',
  168. 二级: {
  169. "title": "h1.fed-part-eone&&Text;.fed-deta-content&&.fed-part-rows&&li&&Text",
  170. "img": ".fed-list-info&&a&&data-original",
  171. "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",
  172. "content": ".fed-part-esan&&Text",
  173. "tabs": ".fed-drop-boxs&&.fed-part-rows&&li",
  174. "lists": ".fed-play-item:eq(#id)&&ul:eq(1)&&li"
  175. },
  176. 搜索: '.fed-deta-info;h1&&Text;.lazyload&&data-original;.fed-list-remarks&&Text;a&&href;.fed-deta-content&&Text',
  177. },
  178. 海螺3: {
  179. title: '',
  180. host: '',
  181. searchUrl: '/v_search/**----------fypage---.html',
  182. url: '/vod_____show/fyclass--------fypage---.html',
  183. headers: {
  184. 'User-Agent': 'MOBILE_UA'
  185. },
  186. timeout: 5000,
  187. class_parse: 'body&&.hl-nav li:gt(0);a&&Text;a&&href;.*/(.*?).html',
  188. cate_exclude: '明星|专题|最新|排行',
  189. limit: 40,
  190. play_parse: true,
  191. lazy: '',
  192. 推荐: '.hl-vod-list;li;a&&title;a&&data-original;.remarks&&Text;a&&href',
  193. double: true,
  194. 一级: '.hl-vod-list&&.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
  195. 二级: {
  196. "title": ".hl-infos-title&&Text;.hl-text-conch&&Text",
  197. "img": ".hl-lazy&&data-original",
  198. "desc": ".hl-infos-content&&.hl-text-conch&&Text",
  199. "content": ".hl-content-text&&Text",
  200. "tabs": ".hl-tabs&&a",
  201. "lists": ".hl-plays-list:eq(#id)&&li"
  202. },
  203. 搜索: '.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
  204. searchable: 2,//是否启用全局搜索,
  205. quickSearch: 0,//是否启用快速搜索,
  206. filterable: 0,//是否启用分类筛选,
  207. },
  208. 海螺2: {
  209. title: '',
  210. host: '',
  211. searchUrl: '/index.php/vod/search/page/fypage/wd/**/',
  212. url: '/index.php/vod/show/id/fyclass/page/fypage/',
  213. headers: {
  214. 'User-Agent': 'MOBILE_UA'
  215. },
  216. timeout: 5000,
  217. class_parse: '#nav-bar li;a&&Text;a&&href;id/(.*?)/',
  218. limit: 40,
  219. play_parse: true,
  220. lazy: '',
  221. 推荐: '.list-a.size;li;a&&title;.lazy&&data-original;.bt&&Text;a&&href',
  222. double: true,
  223. 一级: '.list-a&&li;a&&title;.lazy&&data-original;.list-remarks&&Text;a&&href',
  224. 二级: {
  225. "title": "h2&&Text;.deployment&&Text",
  226. "img": ".lazy&&data-original",
  227. "desc": ".deployment&&Text",
  228. "content": ".ec-show&&Text",
  229. "tabs": "#tag&&a",
  230. "lists": ".play_list_box:eq(#id)&&li"
  231. },
  232. 搜索: '.search-list;a&&title;.lazy&&data-original;.deployment&&Text;a&&href',
  233. searchable: 2,//是否启用全局搜索,
  234. quickSearch: 0,//是否启用快速搜索,
  235. filterable: 0,//是否启用分类筛选,
  236. },
  237. 短视: {
  238. title: '',
  239. host: '',
  240. // homeUrl:'/',
  241. url: '/channel/fyclass-fypage.html',
  242. searchUrl: '/search.html?wd=**',
  243. searchable: 2,//是否启用全局搜索,
  244. quickSearch: 0,//是否启用快速搜索,
  245. filterable: 0,//是否启用分类筛选,
  246. headers: {//网站的请求头,完整支持所有的,常带ua和cookies
  247. 'User-Agent': 'MOBILE_UA',
  248. // "Cookie": "searchneed=ok"
  249. },
  250. class_parse: '.menu_bottom ul li;a&&Text;a&&href;.*/(.*?).html',
  251. cate_exclude: '解析|动态',
  252. play_parse: true,
  253. lazy: '',
  254. limit: 6,
  255. 推荐: '.indexShowBox;ul&&li;a&&title;img&&data-src;.s1&&Text;a&&href',
  256. double: true, // 推荐内容是否双层定位
  257. 一级: '.pic-list&&li;a&&title;img&&data-src;.s1&&Text;a&&href',
  258. 二级: {
  259. "title": "h1&&Text;.content-rt&&p:eq(0)&&Text",
  260. "img": ".img&&img&&data-src",
  261. "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",
  262. "content": ".zkjj_a&&Text",
  263. "tabs": ".py-tabs&&option",
  264. "lists": ".player:eq(#id) li"
  265. },
  266. 搜索: '.sr_lists&&ul&&li;h3&&Text;img&&data-src;.int&&p:eq(0)&&Text;a&&href',
  267. },
  268. 短视2:{
  269. title: '',
  270. host: '',
  271. class_name:'电影&电视剧&综艺&动漫',
  272. class_url:'1&2&3&4',
  273. searchUrl: '/index.php/ajax/suggest?mid=1&wd=**&limit=50',
  274. searchable: 2,
  275. quickSearch: 0,
  276. headers:{'User-Agent':'MOBILE_UA'},
  277. url: '/index.php/api/vod#type=fyclass&page=fypage',
  278. filterable:0,//是否启用分类筛选,
  279. filter_url:'',
  280. filter: {},
  281. filter_def:{},
  282. detailUrl:'/index.php/vod/detail/id/fyid.html',
  283. play_parse: true,
  284. lazy: '',
  285. limit: 6,
  286. 推荐:'.list-vod.flex .public-list-box;a&&title;.lazy&&data-original;.public-list-prb&&Text;a&&href',
  287. 一级:'js:let body=input.split("#")[1];let t=Math.round(new Date/1e3).toString();let key=md5("DS"+t+"DCC147D11943AF75");let url=input.split("#")[0];body=body+"&time="+t+"&key="+key;print(body);fetch_params.body=body;let html=post(url,fetch_params);let data=JSON.parse(html);VODS=data.list.map(function(it){it.vod_pic=urljoin2(input.split("/i")[0],it.vod_pic);return it});',
  288. 二级:{
  289. "title":".slide-info-title&&Text;.slide-info:eq(3)--strong&&Text",
  290. "img":".detail-pic&&data-original",
  291. "desc":".fraction&&Text;.slide-info-remarks:eq(1)&&Text;.slide-info-remarks:eq(2)&&Text;.slide-info:eq(2)--strong&&Text;.slide-info:eq(1)--strong&&Text",
  292. "content":"#height_limit&&Text",
  293. "tabs":".anthology.wow.fadeInUp.animated&&.swiper-wrapper&&a",
  294. "tab_text":".swiper-slide&&Text",
  295. "lists":".anthology-list-box:eq(#id) li"
  296. },
  297. 搜索:'json:list;name;pic;;id',
  298. }
  299. };
  300. return JSON.parse(JSON.stringify(mubanDict));
  301. }
  302. var mubanDict = getMubans();
  303. var muban = getMubans();
  304. export default {muban,getMubans};