qimiao.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. var rule = {
  2. title:'奇妙搜[夸]',
  3. host:'https://www.magicalsearch.top',
  4. homeUrl:'/',
  5. url: '/search?',
  6. filter_url:'{{fl.class}}',
  7. filter:{
  8. },
  9. 搜索编码: 'utf-8',
  10. searchUrl: '/api/pshou/getData?type=%E9%98%BF%E9%87%8C%E7%BD%91%E7%9B%98&word=**',
  11. searchable:2,
  12. quickSearch:0,
  13. filterable:0,
  14. headers:{
  15. 'User-Agent': PC_UA,
  16. 'Accept': '*/*',
  17. 'Referer': 'https://www.magicalsearch.top/'
  18. },
  19. timeout:5000,
  20. class_name:'',
  21. class_url:'',
  22. play_parse:true,
  23. play_json:[{
  24. re:'*',
  25. json:{
  26. parse:0,
  27. jx:0
  28. }
  29. }],
  30. lazy:'',
  31. limit:6,
  32. 推荐:'',
  33. 一级:'',
  34. 二级:`js:
  35. VOD.vod_play_from = "網盤";
  36. VOD.vod_remarks = detailUrl;
  37. VOD.vod_actor = "沒有二級,只有一級鏈接直接推送播放";
  38. VOD.vod_content = MY_URL;
  39. VOD.vod_play_url = "播放$" + detailUrl;
  40. `,
  41. 搜索:`js:
  42. let new_html=request(input);
  43. //log("qimiao search result>>>>>>>>>>>>>>>" + new_html);
  44. let json=JSON.parse(JSON.parse(new_html));
  45. json = json.result.items;
  46. let d=[];
  47. for(const it in json){
  48. if (json.hasOwnProperty(it)){
  49. log("qimiao search it>>>>>>>>>>>>>>>" + JSON.stringify(json[it]));
  50. if (json[it].title.includes(KEY)){
  51. d.push({
  52. title:json[it].title,
  53. img:'',
  54. content:json[it].content.title,
  55. desc:json[it].insert_time,
  56. url:'push://'+json[it].page_url
  57. });
  58. }
  59. }
  60. }
  61. setResult(d);
  62. `,
  63. }