可达影视.js 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. var rule = {
  2. title: '可达影视',
  3. host: 'https://kedays.org',
  4. // url:'/shaixuan/fyclass--------fypage---.html',
  5. url: '/shaixuan/fyclass-fyfilter.html',
  6. searchUrl: '/so/**----------fypage---.html',
  7. searchable: 2,
  8. quickSearch: 0,
  9. filterable: 1,
  10. filter: 'H4sIAAAAAAAAA+2a2U7bUBCG38XXXByHspQ7yr7va8VFVCJIC0FiqUoREhWLoBQoCJIGQkslAqEiEFq6EBTyMrET3qIGz5kZ7vwAc5f/G/vYv3MMnxBzxnDQH5oNhkaMipdzxpvArFFhWLGU9SltFBkh/3iA57f+sZnA44GhB7ycuF9MPGAnGPNFQI9P76MrQCHo2f1J1P53CTMIeN5Wyr650+e5Qc/yd5vWQQZmEHDNb2c0g6BndiRux85hBgFnv1J0HgSchVPWxyPr8LseY8arnp3bh/FCPJtL7+trc4StNlJW+kS3coOeFdav6A4g0N3t8bvb4zPnVuz1rPNo9bKYceV4Nr+VzK9F9eKY9RG57FI+E7HD+sugjFdZ/mNdLOpLuGF+6GEKm2Tt1F5cZptEZy+bJL96BQdToHqJXCaG3R4DzsIx5zp65gZ8ZKtfcuk1/cjcgNc73bZubvX13IBr4o1TwDWTJ7m7I72mG/C8lZ376Jk+zw143tcfzh3o89yAsw+f7YWwnrkB17y7yO/+tjJXelnMXr+WwmWykFigrwWzp3f3IOMcrxd3A9utNIOAj/fnMc0g4JsSyVgbERpTZm8wG7uBvcE0g8DeETZzAz3Iv6yJGzzv7Jvr3G2G7WydvTxCn/I9A/b4kfFi4sWc+4j7ODeJm5wr4opx8zly5yPj5cTLOS8jXsZ5KfFSzkuIl3BOfU3e16S+Ju9rUl+T9zWpr8n7mtTX5H0V9VW8r6K+ivdV1Ffxvor6Kt5XUV/F+yrqq3hfRX0V76uor+J9FfVVvK+ivs7HJxszGbEvN9jG1NnLxqwEUInkBZAXSKqAVCGpBlKNpAZIDZJaILVI6oDUIakHUo+kAUgDkkYgjUiagDQhaQbSjKQFSAuSViCtSNqAtCFpB9KOpANIB5JOIJ1IuoB0IekG0o2kB0gPkl4gvUj6gPQh6QfSj2QAyACSQSCDTzaFvbljpbdoU2B+uins2EIhu20fXDsuA+tMB50T8IdpbME63rd3kvaulrDR4PTUk3nc+YWwBMOpVxOTgYcbGSoyxhyFfDfzekYUUhRSFFIUUhRSFFIUUhRSFFIU0qNCvp8IjcwGRSBFIEUgRSBFIEUgRSBFIEUgRSA9CuSwI5Dj/pAYpBikGKQYpBikGKQYpBikGKQYpEeDnBr1TwQmRSBFIEUgRSBFIEUgRSBFIEUgRSC9/glyxh+Sf4IUgRSBFIEUgRSBFIE0RCBFIEUgvQnk/H9dz0+3jD0AAA==',
  11. filter_url: '{{fl.地区}}-{{fl.排序 or "time"}}-{{fl.剧情}}-{{fl.语言}}-{{fl.字母}}---fypage---{{fl.年份}}',
  12. headers: {
  13. 'User-Agent': 'MOBILE_UA',
  14. },
  15. timeout: 5000,
  16. class_parse: '.nav-m-box&&li;a&&Text;a&&href;/.*\/(.*?)\.html',
  17. cate_exclude: '最近|排行',
  18. play_parse: true,
  19. lazy: $js.toString(() => {
  20. var html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
  21. log(html)
  22. var url = html.url;
  23. var from = html.from;
  24. if (html.encrypt == '1') {
  25. url = unescape(url);
  26. } else if (html.encrypt == '2') {
  27. url = unescape(base64Decode(url));
  28. }
  29. log(url)
  30. var pconfig = jsp.pdfh(request(rule.parse + url), 'body&&script,0&&Html').match(/config = {[\s\S]*?}/)[0];
  31. var config = {};
  32. eval(pconfig);
  33. let purl = JSON.parse(request(rule.parse.replace('?url=', 'api_config.php'), {
  34. headers: {
  35. 'Origin': HOST
  36. },
  37. body: 'url=' + config.url + '&time=' + config.time + '&key=' + config.key,
  38. method: 'POST'
  39. })).url;
  40. if (/NBY|BTJSON|CL4K/.test(from)) {
  41. let play = JSON.parse(request(purl, {
  42. headers: {
  43. 'Origin': 'https://kedays.org',
  44. 'Host': 'cdn.suxun.site',
  45. 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36'
  46. },
  47. redirect: false,
  48. withHeaders: true
  49. })).location;
  50. input = {parse: 0, url: play, js: ''};
  51. } else {
  52. let play = JSON.parse(request(purl, {
  53. headers: {
  54. 'Origin': 'https://kedays.org',
  55. 'Host': 'cdn.suxun.site',
  56. 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36'
  57. },
  58. redirect: false,
  59. withHeaders: true
  60. })).location;
  61. let video = JSON.parse(request(play, {
  62. headers: {
  63. 'Origin': 'https://kedays.org',
  64. 'Host': 'cdn.suxun.site',
  65. 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36'
  66. },
  67. redirect: false,
  68. withHeaders: true
  69. })).location + '#.m3u8';
  70. input = {parse: 0, url: video, js: ''};
  71. }
  72. }),
  73. double: true,
  74. 推荐: '.layout-box;.vlist&&li;*;*;*;*',
  75. 一级: '.vod-list&&ul&&li;a&&title;.lazyload&&data-original;.item-status&&Text;a&&href',
  76. 二级: {
  77. title: 'h3&&Text;p.row&&span&&a&&Text',
  78. img: 'img.lazyload&&data-original',
  79. desc: 'p.row&&span:eq(-1)&&Text;p.row&&span:eq(2)&&Text;p.row&&span:eq(1)&&Text;p.row&&span:eq(4)&&Text;p.row&&span:eq(3)&&Text;',
  80. content: '.more-box&&Text',
  81. tabs: '.playlist-tab&&ul&&li',
  82. lists: '.ewave-playlist-content:eq(#id)&&li',
  83. tab_text: 'body&&Text',
  84. list_text: 'body&&Text',
  85. list_url: 'a&&href'
  86. },
  87. 搜索: '*',
  88. }