干饭影视.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // 地址发布页 https://gfysys.com
  2. var rule = {
  3. title:'干饭影视',
  4. host:'https://gfvod.com',
  5. //host:'https://gfysys.com',
  6. //hostJs:'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src=jsp.pdfh(html,"li:eq(0)&&a:eq(0)&&Text");print(src);HOST=src',
  7. // url:'/vodshow/fyclass--------fypage---.html',
  8. url:'/vodshow/fyfilter.html',
  9. filterable:1,//是否启用分类筛选,
  10. filter_url:'{{fl.按分类}}---{{fl.按剧情}}-----fypage---{{fl.按年份}}',
  11. filter: "H4sIAAAAAAAAA+2Wz27aQBDG38VnDmCQkuZVqhxy4NQmt1SqIiRSCrURAgdFSVNoaJpQaFLTkNAIbAgv412bt6jJ/NklB8Qdbvy+zzO7HmZ2fWSkjJ23R8a77Edjx5AVW1ilsO8bCeNgbz/7Svqw9/4w+/L4QeyEp//EpD+XY0gZuQTIwu7MGiWUTZZDfxzZHspp9XS5K8d3KGfU0y03zkNJkkZud+6oTdodWSgubpKkxU2KYndW6GIitepZU6VH4KWtPiZSQJ48dmT+DD0E7U2CSZNyAnDOzokY+ZQTQKuXWg+B17O+Bp5N6wGQF7m/ROUWPQRer/w3nJCH8LqEo0HgTxZLSNIqJTSTZob/HzOj62mlp3XdVLqp6ymlp3Q9qfSkpqfesB7/1PRtpW/r+pbSt+Zl2E3EfbmGTV+7ia650QBWabRlwyJ6T8JzyQNY2oQrDItof1HDgrB0WDaNrRo7vYaNPcvbYSePKgI3dqEoP7eosQH4BO1No3uLTlAAjqu7stymOAD2zotyOCQPgPfSegxGDu0FgMvwXJ1d014Q2PNuRe+SPABer/Ggio3AcactOeCbBYDjhkNp1QKvHv8tFK1LXIfBz9CvUR0AOEf/U3RcoWiAzcBpA5dZw4FbNlTLPnXCghtd0aAicM5qN3TovRHYcy7DPyfkAXAFSvXZxW+6EQC4sZ3vUZVuNQTO+eNKNOjmQljldpJNL74fKQ6A15s6atQQVrph7+MyDWg9AN1rP2peDFzPm+dg/I3qCcBx1ZawGhQHQF7gPQiXDikEztkoywtqNARVl76YnnNdXoC94lPg06cxwuag0D85k2t4UiykR9h0BXdF7j+lxEb8fw8AAA==",
  12. filter_def:{
  13. "1": {
  14. "按分类": "1"
  15. },
  16. "2": {
  17. "按分类": "2"
  18. },
  19. "3": {
  20. "按分类": "3"
  21. },
  22. "4": {
  23. "按分类": "4"
  24. },
  25. "20": {
  26. "按分类": "20"
  27. }
  28. },
  29. searchUrl: '/vodsearch/**-------------.html',
  30. searchable: 2,//是否启用全局搜索,
  31. headers: {
  32. 'User-Agent': 'PC_UA',
  33. },
  34. class_parse: '.ewave-header__menu&&li;a&&Text;a&&href;/(\\d+).html',
  35. play_parse: true,
  36. lazy:`js:
  37. var html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
  38. var url = html.url;
  39. var from = html.from;
  40. if (html.encrypt == '1') {
  41. url = unescape(url)
  42. }else if(/lzm3u8/.test(input)){
  43. play_Url='json:https://jx.m3u8.biz/gg.php?url=';
  44. input={jx:0,url:input,playUrl:play_Url,parse:1}
  45. } else if (html.encrypt == '2') {
  46. url = unescape(base64Decode(url))
  47. }
  48. if (/m3u8|mp4/.test(url)) {
  49. input = url
  50. } else {
  51. var jx =request(HOST + "/static/player/" + from + ".js").match(/ src="(.*?)'/)[1];
  52. log(jx)
  53. let con=request(jx.replace('index','ec')+ url, {headers: {'Referer': HOST}}).match(/let ConFig.*}/)[0];
  54. log(con)
  55. eval(con+'\\nrule.ConFig=ConFig')
  56. function ec(str, uid) {
  57. eval(getCryptoJS());
  58. return CryptoJS.enc.Utf8.stringify(CryptoJS.AES.decrypt(str, CryptoJS.enc.Utf8.parse('2890' + uid + 'tB959C'), {
  59. iv: CryptoJS.enc.Utf8.parse('2F131BE91247866E'),
  60. mode: CryptoJS.mode.CBC,
  61. padding: CryptoJS.pad.Pkcs7
  62. }));
  63. };
  64. //log(rule.ConFig.url)
  65. //log(rule.ConFig.config.uid)
  66. let purl=ec(rule.ConFig.url, rule.ConFig.config.uid);
  67. //log(purl)
  68. input = {
  69. jx: 0,
  70. url: purl,
  71. parse:0,
  72. }
  73. }`,
  74. double: false, // 推荐内容是否双层定位
  75. 推荐: '.tab-content&&li;*;*;;*',
  76. 一级: '.ewave-vodlist&&li;.lazyload&&title;.lazyload&&data-original;;a&&href',
  77. 二级: {
  78. "title": "h1&&Text;.data--span:eq(0)&&Text",
  79. "img": ".lazyload&&data-original",
  80. "desc": ".data:eq(3)&&Text;;;.data--span:eq(1)&&Text;.data--span:eq(2)&&Text",
  81. "content": ".desc--a&&Text",
  82. "tabs": ".nav-tabs&&li",
  83. "lists": ".ewave-content__playlist:eq(#id)&&li"
  84. },
  85. 搜索: '.ewave-vodlist__media&&li;*;*;;*',
  86. }