348电影网.js 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. var rule = {
  2. title: '348电影网',
  3. host: 'https://www.348z.com',
  4. // url:'/vodshow/id/fyclass/page/fypage.html',
  5. url: '/vodshow/id/fyfilter.html',
  6. filterable: 1,//是否启用分类筛选,
  7. filter_url: '{{fl.cateId}}{{fl.area}}/page/fypage{{fl.year}}',
  8. filter: 'H4sIAAAAAAAAA+2Xy27TUBCG38XrSM2xc+2SHeIRUBYWeAV0UQFSVUWilISkBdKiNjQ0FSCROi0pdVRuSeT0ZXyp34Lj2Dkzc5BaSw07L/1/4/Hx7zm/7XWFKcv315VHxpqyrDzQnxp3HyoZZUV/YvBjt1H3hxN+/Fx//MyYFa6Ecq0fbPZDmR8wpZqJ5a2+Y3f95uuYFIC0u27TBFIUxG8Mvc0akBIQc9cdTYCUBfE2drwXbSAsCxdqmqQdg9V5jQNn3ERIhUuNT117H5AKDf2NafBxihA0DM72yAJVaBgcvfcOeghp0HDr3LdPEcrBCl8O/PYuQnm4r+l3f++naw/nCLwNPl04ox10Fph7x//WoadxEyshjR63vmro6GF3LffN+PqHDQv6agadeqwuhY2WYkms67jj/TknFbEkerQsbzSlPSJJmDV95x7apCKWhGcX+3JFLM0rrraHckUsiR4fel53QHtEEnh8IveIJXhAv+WKWIKVWv+u1CI93lru+Jj2iCTR41WLu+w2TmgboYp77l36rTO/2aG3LVTYsZ+97Ut+Mr2oUEVd7ZczadOiSMLjtGboq2icRj+ciZ1wnNQs3wdx+7DN0kxAVJOphqkqUxVTJlOGaVamWURZWaKsjGlJpiVMizItYlqQaQHTvEzzmMpeMewVk71i2Csme8WwV0z2imGvmOxVmLyVaiWjqLd8icAa+IZwxibP8XlMw+J5dvB8QCiHt3C4IQGBXd7ADDMDEPgc5iMHweE8yHJlaeThtHx2YdFZr/F6upkiKXncLCJcb469JPF7U6gliN+2xRPHPfpC2wg1DaE0hBKFkIZC6L/uzyiI6LhGEs0jeW+FEo0lWhFJ6TSn08ynObegaZ69T+k0R1Ly98A1s5pmczrNibK5eMsvRA28yd0jP7VaiZIrsw6fbVr6x5v+8aZ/vGmgLTbQqn8B50a4ODgVAAA=',
  9. filter_def: {
  10. 1: {cateId: '1'},
  11. 2: {cateId: '2'},
  12. 3: {cateId: '3'},
  13. 4: {cateId: '4'},
  14. 37: {cateId: '37'}
  15. },
  16. searchUrl: '/vodsearch/page/fypage/wd/**.html',
  17. searchable: 2,//是否启用全局搜索,
  18. headers: {//网站的请求头,完整支持所有的,常带ua和cookies
  19. 'User-Agent': 'PC_UA',
  20. },
  21. class_parse: '.nav-channel a;a&&Text;a&&href;/(\\d+).html',
  22. play_parse: true,
  23. tab_remove: ['蓝光Z', '极速', '极速2'],
  24. lazy: `js:
  25. let html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
  26. let url = html.url;
  27. if (html.encrypt == '1') {
  28. url = unescape(url)
  29. } else if (html.encrypt == '2') {
  30. url = unescape(base64Decode(url))
  31. }
  32. if (/\\.m3u8/.test(url)) {
  33. let body = request(url);
  34. let lines = body.split('\\n');
  35. let m3u8Url = null;
  36. for (let line of lines) {
  37. line = line.trim();
  38. if (line.endsWith('.m3u8')) {
  39. m3u8Url = urljoin(url,line);//获取嵌套M3U8
  40. console.log(m3u8Url);
  41. break;
  42. }
  43. }
  44. input = {
  45. jx: 0,
  46. url: m3u8Url || url,
  47. parse: 0
  48. };
  49. } else {
  50. input = {
  51. jx: 0,
  52. url: url,
  53. parse: 0
  54. };
  55. }
  56. `,
  57. limit: 6,
  58. double: true, // 推荐内容是否双层定位
  59. 推荐: '.vodlist;*;*;*;*;*',
  60. 一级: '.pack-ykpack;a&&title;.eclazy&&data-original;.pack-prb&&Text;a&&href',
  61. 二级: {
  62. "title": ".fyy&&Text;.s-top-info-detail&&Text",
  63. "img": ".g-playicon&&img&&src",
  64. "desc": ".s-top-info-title span&&Text;;;.item-type&&Text;.item-actor:eq(2)&&Text",
  65. "content": ".ec-palytcji span&&Text",
  66. "tabs": `js:
  67. TABS = [];
  68. let tabs = pdfa(html.replace(/&nbsp;/g,''), '.swiper-wrapper .channelname');
  69. tabs.forEach((it) => {
  70. TABS.push(pdfh(it, "body&&Text").replace(/\\s*\\([^)]*\\)/,'').replace(/[^\x00-\x7F]/,''));
  71. });
  72. `,
  73. "lists": ".content_playlist:eq(#id) li"
  74. },
  75. 搜索: '.pack-packcover.returl.list-top-b;*;*;*;*',
  76. }