funletu.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. var rule = {
  2. title:'趣盘搜[夸]',
  3. host:'https://v.funletu.com',
  4. homeUrl:'/',
  5. url: '/forum-fyclass-fypage.html?',
  6. filter_url:'{{fl.class}}',
  7. filter:{
  8. },
  9. searchUrl: 'json:/search#{"style":"get","datasrc":"search","query":{"id":"","datetime":"","commonid":1,"parmid":"","fileid":"","reportid":"","validid":"","searchtext":"**"},"page":{"pageSize":10,"pageIndex":1},"order":{"prop":"id","order":"desc"},"message":"请求资源列表数据"};postjson',
  10. searchable:2,
  11. quickSearch:0,
  12. filterable:0,
  13. headers:{
  14. 'User-Agent': PC_UA,
  15. 'Accept': '*/*',
  16. 'Referer': 'https://pan.funletu.com/'
  17. },
  18. timeout:5000,
  19. class_name:'',
  20. class_url:'',
  21. play_parse:true,
  22. play_json:[{
  23. re:'*',
  24. json:{
  25. parse:0,
  26. jx:0
  27. }
  28. }],
  29. lazy:'',
  30. limit:6,
  31. 推荐:'',
  32. 一级:'',
  33. 二级:`js:
  34. VOD.vod_play_from = "夸克網盤";
  35. VOD.vod_remarks = detailUrl;
  36. VOD.vod_actor = "沒有二級,只有一級鏈接直接推送播放";
  37. VOD.vod_content = MY_URL;
  38. VOD.vod_play_url = "夸克網盤$" + detailUrl;
  39. `,
  40. 搜索:`js:
  41. let postJson = {
  42. style:"get",
  43. datasrc:"search",
  44. query:{
  45. id:"",
  46. datetime:"",
  47. commonid:1,
  48. parmid:"",
  49. fileid:"",
  50. reportid:"",
  51. validid:"",
  52. searchtext: KEY
  53. },
  54. page:{ pageSize:20, pageIndex: MY_PAGE },
  55. order:{prop:"id",order:"desc"},
  56. message:"请求资源列表数据"
  57. };
  58. let postData = {
  59. method: "POST",
  60. body: postJson
  61. };
  62. log("funletu search postData1>>>>>>>>>>>>>>>" + JSON.stringify(postData));
  63. let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
  64. Object.assign(_fetch_params, postData);
  65. log("funletu search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
  66. let new_html=post(rule.homeUrl + 'search', _fetch_params);
  67. //log("funletu search result>>>>>>>>>>>>>>>" + new_html);
  68. let json=JSON.parse(new_html);
  69. let d=[]
  70. for(const it in json["data"]){
  71. if (json.data.hasOwnProperty(it)){
  72. log("funletu search it>>>>>>>>>>>>>>>" + JSON.stringify(json.data[it]));
  73. if (json.data[it].valid === 0){
  74. d.push({
  75. title:json.data[it].title,
  76. img:'',
  77. content:json.data[it].updatetime,
  78. desc:json.data[it].updatetime,
  79. url:'push://'+json.data[it].url.split("?")[0]
  80. });
  81. }
  82. }
  83. }
  84. setResult(d);
  85. `,
  86. }