HBOTV.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. var rule = {
  2. title: 'HBOTV',
  3. host: 'https://www.hbotv1.com/',
  4. url: '/fyclass/index_fypage.html[/fyclass/index.html]',
  5. searchUrl: '/vodsearch/**-fypage/',
  6. searchable: 2,
  7. quickSearch: 0,
  8. filterable: 0,
  9. headers: {
  10. 'User-Agent': 'PC_UA',
  11. },
  12. class_parse: '.stui-header__menu li;a&&Text;a&&href;.*/(.*?)/',
  13. play_parse: true,
  14. lazy: "js:\n let html = request(input);\n let hconf = html.match(/r player_.*?=(.*?)</)[1];\n let json = JSON5.parse(hconf);\n let url = json.url;\n if (json.encrypt == '1') {\n url = unescape(url);\n } else if (json.encrypt == '2') {\n url = unescape(base64Decode(url));\n }\n if (/\\.(m3u8|mp4|m4a|mp3)/.test(url)) {\n input = {\n parse: 0,\n jx: 0,\n url: url,\n };\n } else {\n input;\n }",
  15. limit: 6,
  16. double: true,
  17. 推荐: 'ul.stui-vodlist.clearfix;li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href',
  18. 一级: 'ul.stui-vodlist.clearfix li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href',
  19. 二级: {
  20. title: '.stui-content__detail .title&&Text;.stui-content__detail&&p:eq(3)&&a&&Text',
  21. img: '.stui-content__thumb .lazyload&&data-original',
  22. desc: '.pic-text&&Text;.stui-content__detail&&p:eq(3)&&a:eq(2)&&Text;.stui-content__detail&&p:eq(3)&&a:eq(1)&&Text;.stui-content__detail p--span&&Text;.stui-content__detail p:eq(1)--span&&Text',
  23. content: '.detail-sketch&&Text',
  24. tabs: '.stui-pannel__head h3',
  25. lists: '.stui-content__playlist:eq(#id) li',
  26. },
  27. 搜索: $js.toString(() => {
  28. var d = [];
  29. var body = 'keyboard=' + KEY + '&show=title&tempid=1&tbname=news&mid=1&dopost=search'; //log(body)
  30. var html = JSON.parse(fetch('https://www.hbotv1.com/e/search/index.php', {
  31. body: body,
  32. method: 'POST',
  33. withHeaders:true,
  34. redirect:false
  35. })).location; //log(html)
  36. var list = pdfa(request(HOST+html), '.stui-vodlist__media&&li');
  37. for (var j in list) {
  38. d.push({
  39. title: pdfh(list[j], '.lazyload&&title'),
  40. desc: pdfh(list[j], '.pic-text&&Text'),
  41. img: pd(list[j], '.lazyload&&data-original') + '@Referer=',
  42. url: 'https://www.hbotv1.com'+pdfh(list[j], '.lazyload&&href') + '#immersiveTheme#'
  43. });
  44. }
  45. setResult(d);
  46. }),
  47. }