盘他.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. var rule = {
  2. title: '盘他',
  3. host: 'https://panso.pro',
  4. searchUrl: '/search?exact=false&format=video&page=fypage&q=**&share_time=&type=&user=',
  5. searchable: 2,
  6. quickSearch: 0,
  7. headers: {
  8. 'User-Agent': 'PC_UA',
  9. },
  10. timeout: 5000,
  11. play_parse: true,
  12. lazy: $js.toString(() => {
  13. let url = input.startsWith('push://') ? input : 'push://' + input;
  14. input = {parse: 0, url: url};
  15. }),
  16. 一级: '',
  17. 二级: $js.toString(() => {
  18. VOD = {};
  19. VOD.vod_id = input;
  20. let html = request(input);
  21. let title = pdfh(html, 'h1&&Text');
  22. let share_url = pdfh(html, '.semi-typography-link:eq(-1)&&a&&href');
  23. let share_type = pdfh(html, '.semi-descriptions-value:eq(3)&&Text');
  24. VOD.vod_name = title;
  25. VOD.vod_pic = '';
  26. VOD.content = share_url;
  27. VOD.vod_remarks = pdfh(html, '.semi-descriptions-value&&Text');
  28. VOD.vod_play_from = '点击下方播放';
  29. VOD.vod_play_url = share_type + '$' + 'push://' + share_url;
  30. }),
  31. 搜索: $js.toString(() => {
  32. let html = request(input);
  33. let data = pdfa(html, '.rm-search-content&&.semi-space-vertical');
  34. let d = [];
  35. data.forEach(it => {
  36. d.push({
  37. title: pdfh(it, 'a&&title'),
  38. desc: pdfh(it, 'span:eq(3)&&Text') + '|' + pdfh(it, 'span:eq(-1)&&Text'),
  39. img: "",
  40. url: pd(it, 'a&&href', MY_URL)
  41. });
  42. });
  43. setResult(d);
  44. }),
  45. }