88看球.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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: {
  16. "1": 1,
  17. "2": 1,
  18. "4": 1,
  19. "22": 1,
  20. "8": 1,
  21. "9": 1,
  22. "10": 1,
  23. "14": 1,
  24. "15": 1,
  25. "12": 1,
  26. "13": 1,
  27. "16": 1,
  28. "28": 1,
  29. "7": 1,
  30. "11": 1,
  31. "33": 1,
  32. "27": 1,
  33. "23": 1,
  34. "26": 1,
  35. "3": 1,
  36. "21": 1,
  37. "18": 1
  38. },
  39. lazy: $js.toString(() => {
  40. if (/embed=/.test(input)) {
  41. let url = input.match(/embed=(.*?)&/)[1];
  42. url = base64Decode(url);
  43. input = {
  44. jx: 0,
  45. url: url.split('#')[0],
  46. parse: 0
  47. }
  48. } else if (/\?url=/.test(input)) {
  49. input = {
  50. jx: 0,
  51. url: input.split('?url=')[1].split('#')[0],
  52. parse: 0
  53. }
  54. } else {
  55. input
  56. }
  57. }),
  58. limit: 6,
  59. double: false,
  60. 推荐: "*",
  61. 一级: ".list-group .group-game-item;.d-none&&Text;img&&src;.btn&&Text;a&&href",
  62. 二级: {
  63. title: ".game-info-container&&Text;.customer-navbar-nav li&&Text",
  64. img: "img&&src",
  65. desc: ";;;div.team-name:eq(0)&&Text;div.team-name:eq(1)&&Text",
  66. content: "div.game-time&&Text",
  67. tabs: "js:TABS=['88看球']",
  68. lists: $js.toString(() => {
  69. LISTS = [];
  70. let html = request(input.replace('play', 'play-url'));
  71. let pdata = JSON.parse(html)
  72. .data;
  73. pdata = pdata.slice(6);
  74. pdata = pdata.slice(0, -2);
  75. pdata = base64Decode(pdata);
  76. // log(pdata);
  77. let jo = JSON.parse(pdata)
  78. .links;
  79. let d = jo.map(function(it) {
  80. return it.name + '$' + urlencode(it.url)
  81. });
  82. LISTS.push(d)
  83. }),
  84. },
  85. 搜索: "",
  86. };