贝乐虎.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. var rule = {
  2. 类型: '影视',//影视|听书|漫画|小说
  3. title: '贝乐虎[儿]',
  4. host: 'https://vd.ubestkid.com',
  5. url: '/api/v1/bv/video#pg=fypage',
  6. homeUrl: '/api/v1/bv/video',
  7. searchable: 0,
  8. quickSearch: 0,
  9. filterable: 0,
  10. headers: {
  11. 'User-Agent': 'IOS_UA',
  12. },
  13. timeout: 5000,
  14. class_parse: $js.toString(() => {
  15. input = JSON.parse(ungzip('H4sIAAAAAAAAA4VUy27aUBD9F6+zwKRAk1+pqqpSsuiiVRfdVFUlUnCCwU1IwqNuHggFQ1owOCGNjAnwM547l10/oZeiRmTuoO5s6ZyZc87M3BefjA8f3+++erNjbKdTG8ufd6/f7hrbxu9GeSDOs6IWxGFRXN4bnzdW0Ka5qcPjKBJBBXO+OPGfwlNpHY3jI7BC7HoyuCLFNzM6HB6yMMvJu4t4VJbuIanPqIFpCYrXkJ8J3yHorXVqOLSZMHW4vLcw6oibiZy0TRoNU34Vj71eHDnga66ZkCgvtDXeFjO4v7i68kRbcDmNHha2bZXWTBYuqRluFKd5vGhyWWUSjIXSjagdsMmanOPiF1H34vBw8RFUiFdGjdgrz6duHNawSufMJKNWAitjtFlBKa78rz3ZdBRUnN1S+c8Z+f8WFCwPznzZD+g2cZ4fSa0OulPsHD8lpZNrF/aoJQd1gmaGvESLqhVHJSIoybkoOws1fhuKDWh1qQVmyjj+Js57fAPmfsg1L3cE7QIZN5MV1K8faSJnQXV/OVKqkXG1ANo/5o2hYou7KQxGVCnXTyOtEWsmuHXzDqDt4ve8jLrx5JT2e/ZfxppmaYYp+y1sePC1qbabSmOfpCs4HmI/i72Kll+GiU9UA/WosIec5O5+sK/gysL8p6OHleTeFUU6cXE4hsIq7+UfFA1HoacGAAA='));
  16. }),
  17. play_parse: true,
  18. lazy: $js.toString(() => {
  19. input = {parse: 0, url: input + '#.mp4'};
  20. }),
  21. 推荐: $js.toString(() => {
  22. let pdata = {age: 1, appver: "6.1.9", egvip_status: 0, svip_status: 0, vps: 60, subcateId: 56, p: 1};
  23. // let pbody = buildUrl('',pdata).split('?')[1];
  24. // let html = post(input,{body:pbody});
  25. let html = post(input, {data: pdata});
  26. let json = JSON.parse(html);
  27. let data = json.result.items;
  28. let d = [];
  29. data.forEach(it => {
  30. d.push({
  31. vod_id: it.url + '@@' + it.title + '@@' + it.image,
  32. vod_name: it.title,
  33. vod_pic: it.image,
  34. vod_remarks: '👀' + it.viewcount || '',
  35. });
  36. });
  37. VODS = d;
  38. }),
  39. 一级: $js.toString(() => {
  40. let pdata = {age: 1, appver: "6.1.9", egvip_status: 0, svip_status: 0, vps: 60, subcateId: MY_CATE, p: MY_PAGE};
  41. let html = post(input.split('#')[0], {data: pdata});
  42. let json = JSON.parse(html);
  43. let data = json.result.items;
  44. let d = [];
  45. data.forEach(it => {
  46. d.push({
  47. vod_id: it.url + '@@' + it.title + '@@' + it.image,
  48. vod_name: it.title,
  49. vod_pic: it.image,
  50. vod_remarks: '👀' + it.viewcount || '',
  51. });
  52. });
  53. VODS = d;
  54. }),
  55. 二级: '*',
  56. }