最新4K.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. var rule = {
  2. 模板: '首图2',
  3. title: '最新4K',
  4. host: 'https://www.1080.ee',
  5. url: '/vodtype/fyclass-fypage.html',
  6. searchUrl: '/vodsearch/**----------fypage---.html',
  7. cate_exclude: '专题',
  8. 搜索: 'ul.stui-vodlist__media,ul.stui-vodlist,#searchList li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
  9. lazy: $js.toString(() => {
  10. let html = request(input);
  11. html = JSON.parse(html.match(/r player_.*?=(.*?)</)[1]);
  12. let url = html.url;
  13. // log('url:'+url);
  14. let config = {};
  15. let jscode = request(HOST + '/static/js/playerconfig.js');
  16. // log('jscode:'+jscode);
  17. eval(jscode + '\nconfig=MacPlayerConfig;');
  18. let jx = config.player_list[html.from].parse;
  19. if (jx == '') {
  20. jx = config.parse
  21. }
  22. jx = jx.replace('///', '//');
  23. log('jx:' + jx);
  24. let p = 'url=' + url;
  25. let video = JSON.parse(request(jx.replace('?url=', 'API.php'), {
  26. headers: {
  27. 'Referer': HOST
  28. },
  29. body: p,
  30. method: 'POST'
  31. })).url;
  32. log(video);
  33. if (video) {
  34. input = {
  35. jx: 0,
  36. url: video,
  37. parse: 0
  38. }
  39. }
  40. }),
  41. }