88kanqiu.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. var rule = {
  2. title:'88看球',
  3. // host:'http://www.88kanqiu.cc',
  4. host:'http://www.88kanqiu.bar/',
  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.replace('play', 'play-url'));
  48. let pdata = JSON.parse(html).data;
  49. pdata = pdata.slice(6);
  50. pdata = pdata.slice(0, -2);
  51. pdata = base64Decode(pdata);
  52. // log(pdata);
  53. let jo = JSON.parse(pdata).links;
  54. let d = jo.map(function (it) {
  55. return it.name + '$' + urlencode(it.url)
  56. });
  57. LISTS.push(d)
  58. `,
  59. },
  60. 搜索: "",
  61. };