88看球.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. var rule = {
  2. title: "88看球",
  3. // host:'http://www.88kanqiu.cc',
  4. host: "http://www.88kanqiu.live",
  5. url: "/match/fyclass/live",
  6. searchUrl: "",
  7. searchable: 0,
  8. quickSearch: 0,
  9. class_parse: ".nav-pills li;a&&Text;a&&href;/match/(\\d+)/live",
  10. headers: {
  11. "User-Agent": "PC_UA",
  12. },
  13. timeout: 5000,
  14. play_parse: true,
  15. pagecount:{"1":1,"2":1,"4":1,"22":1,"8":1,"9":1,"10":1,"14":1,"15":1,"12":1,"13":1,"16":1,"28":1,"7":1,"11":1,"33":1,"27":1,"23":1,"26":1,"3":1,"21":1,"18":1},
  16. lazy: `js:
  17. if(/embed=/.test(input)) {
  18. let url = input.match(/embed=(.*?)&/)[1];
  19. url = base64Decode(url);
  20. input = {
  21. jx:0,
  22. url: url.split('#')[0],
  23. parse: 0
  24. }
  25. } else if (/\\?url=/.test(input)){
  26. input = {
  27. jx:0,
  28. url: input.split('?url=')[1].split('#')[0],
  29. parse: 0
  30. }
  31. } else {
  32. input
  33. }
  34. `,
  35. limit: 6,
  36. double: false,
  37. 推荐: "*",
  38. 一级: ".list-group .group-game-item;.d-none&&Text;img&&src;.btn&&Text;a&&href",
  39. 二级: {
  40. title: ".game-info-container&&Text;.customer-navbar-nav li&&Text",
  41. img: "img&&src",
  42. desc: ";;;div.team-name:eq(0)&&Text;div.team-name:eq(1)&&Text",
  43. content: "div.game-time&&Text",
  44. tabs: "js:TABS=['道长在线']",
  45. lists: `js:
  46. LISTS=[];
  47. let html = request(input);
  48. let pdata = jsp.pdfh(html, "#t&&value");
  49. pdata = pdata.substring(6, pdata.length);
  50. pdata = pdata.substring(0, (pdata.length) - 2)
  51. pdata = base64Decode(pdata);
  52. let jo = JSON.parse(pdata).links;
  53. let d = jo.map(function(it){
  54. return it.name + '$' + urlencode(it.url)
  55. });
  56. LISTS.push(d)
  57. `,
  58. },
  59. 搜索: "",
  60. };