97电影网.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. var rule = {
  2. author: '小可乐/2408/第一版',
  3. title: '97电影网',
  4. 类型: '影视',
  5. host: 'http://w.aogetu.com',
  6. hostJs: '',
  7. headers: {'User-Agent': 'MOBILE_UA'},
  8. 编码: 'gb2312',
  9. timeout: 5000,
  10. homeUrl: '/',
  11. url: '/fyfilter/indexfypage.html[/fyfilter]',
  12. filter_url: '{{fl.cateId}}',
  13. detailUrl: '',
  14. searchUrl: '/s.asp?page=fypage&searchword=**&searchtype=-1',
  15. searchable: 1,
  16. quickSearch: 1,
  17. filterable: 1,
  18. class_name: '电影&剧集&综艺&动漫&音乐&午夜',
  19. class_url: 'dianying&dianshiju&zongyiyule&dongmandonghua&yuleMV&wuyejuchang',
  20. filter_def: {
  21. dianying: {cateId: 'dianying'},
  22. dianshiju: {cateId: 'dianshiju'},
  23. zongyiyule: {cateId: 'zongyiyule'},
  24. dongmandonghua: {cateId: 'dongmandonghua'},
  25. yuleMV: {cateId: 'yuleMV'},
  26. wuyejuchang: {cateId: 'wuyejuchang'}
  27. },
  28. play_parse: true,
  29. lazy: `js: input = { jx: 0, parse: 0, url: input } `,
  30. limit: 9,
  31. double: false,
  32. 推荐: '*',
  33. 一级: `js:
  34. VODS = [];
  35. let klists = pdfa(request(input), 'li:has([title])');
  36. klists.forEach((it) => {
  37. VODS.push({
  38. vod_name: pdfh(it,'a&&title'),
  39. vod_pic: pdfh(it,'img&&data-original'),
  40. vod_remarks: pdfh(it,'.title&&Text')||pdfh(it,'.name&&Text'),
  41. vod_id: pdfh(it,'a&&href')
  42. })
  43. })
  44. `,
  45. 二级: `js:
  46. let khtml = request(input);
  47. let kdetail = pdfh(khtml, '.vod-body');
  48. VOD = {};
  49. VOD.vod_id = input;
  50. VOD.vod_name = pdfh(kdetail, 'h1&&Text');
  51. VOD.vod_pic = pdfh(kdetail, 'img&&src');
  52. VOD.type_name = pdfh(kdetail, 'p--em:eq(3)&&Text');
  53. VOD.vod_remarks = pdfh(kdetail, 'p:eq(1)&&Text');
  54. VOD.vod_year = pdfh(kdetail, 'p--em:eq(0)&&Text');
  55. VOD.vod_area = pdfh(kdetail, 'p--em:eq(5)&&Text');
  56. VOD.vod_director = pdfh(kdetail, 'p--em:eq(4)&&Text');
  57. VOD.vod_actor = pdfh(kdetail, 'p--em:eq(2)&&Text');
  58. VOD.vod_content = pdfh(khtml, '.vod_content&&Text');
  59. let jinput = pd(khtml, '.plau-ul-list:eq(0)&&a:eq(0)&&href', input);
  60. let jinput2 = pd(request(jinput), '.play&&script:eq(0)&&src', input);
  61. let kjson = JSON.parse(request(jinput2).match(/VideoListJson=(.*?),urlinfo=/)[1].replace(/'/g,'"'));
  62. let ktabs = [];
  63. let i = 1;
  64. kjson.forEach((jit) => {
  65. ktabs.push('👶线路' + i + '-' + jit[0]);
  66. i++
  67. });
  68. VOD.vod_play_from = ktabs.join('$$$');
  69. let kplists = [];
  70. kjson.forEach((jit) => {
  71. let plist = jit[1].map((it) => { return it.replace('$bdhd','').replace('$lzm3u8','') });
  72. plist = plist.join('#');
  73. kplists.push(plist)
  74. });
  75. VOD.vod_play_url = kplists.join('$$$')
  76. `,
  77. 搜索: '*',
  78. filter: 'H4sIAAAAAAAAA62VwW7aQBRF93yG10js8wdRFamLik2UxRC7eIgxTco0MQipVQQNqdTQqqVFRWGTFtImKVHUNuDA19jj8Bd9ZozjGY+RKrpCM5z7fP3um3E1pagYmRY288raZqqq7GiWsqZso7K2rippxURFDdbete2evoH1C2QQ2NisKiZsu/XB7HDgb8MirFNLB/8eD5xJ12u+FoCMWjLzFVJ6BusHuN11m30JfIALhCO9o2t6WJeQCO/CD8/237kjW8LuaDpBJsfSVy36si1jwW6O9wBW5R4KJOaBHn12xk0JW9GRWdE10fL4uzv5KCuNDd5Edv2xyDwlBo723/tgx5qvq5ZS26qlttIs++c6dPh/hM8KhU//MnHGfWiUSGTypLQNrx5h6UXfm76VsSVS1KJVZ9869PanjNQhJT+pKNw7BxdSGJngIur2ZEhHUxlaRnifN/vpK+1eyNA9nNM4A/RmmGAAqvIG6K8/7llb7hUMcJ2dXnm9SxmqEuY0SLcC7bCwRQxt1XgjlUIXZ/1Zp+HZd/fNcYzKqFCLLYXokgSL+AQRyyVJxLIRJJAPBJ8k2cN6XDEfvyTFfARFW/Xfjt1OUuziMloIFgcNlkVk+j9w8ax82vhqwpE7HtC7H1KSvUuwJw70Etl8sGMydmj/9WnBoVwiY4dT1LGWL9P5bQ9VQd/9PDayq/Y7qMKP/qx344xaHJGxkOlfbWAnMl1wX50MZXSkJBtaGfToSVZouYzKwUMLcA/kjYeZ2yeWViBzP6s2IFoq/FC1GvdX4ziQMYgZ/Qo1Ol63J8EOsOZ//ULQubXp+0sJWNFJrsTeKlX7C/ZMI3ixCAAA'
  79. }