yyets.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. var rule = {
  2. title:'人人影视[搜]',
  3. host:'https://yyets.click',
  4. homeUrl:'/',
  5. url:'*',
  6. filter_url:'{{fl.class}}',
  7. filter:{
  8. },
  9. searchUrl: '*',
  10. searchable:2,
  11. quickSearch:0,
  12. filterable:0,
  13. headers:{
  14. 'User-Agent': PC_UA,
  15. 'Accept': '*/*',
  16. 'Referer': 'https://yyets.click/',
  17. 'Cookie':'http://127.0.0.1:9978/file:///tvbox/JS/lib/yyets.txt',
  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. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  43. if (rule_fetch_params.headers.Cookie.startsWith("http")){
  44. rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
  45. let cookie = rule_fetch_params.headers.Cookie;
  46. setItem(RULE_CK, cookie);
  47. };
  48. log('yyets search cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
  49. let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
  50. _fetch_params.headers.Referer = 'http://yyets.click/search?keyword=' + encodeURIComponent(KEY) + '&type=default';
  51. log('yyets search params>>>>>>>>>>>>>>>' + JSON.stringify(_fetch_params));
  52. let new_html=request(rule.homeUrl + 'api/resource?keyword=' + encodeURIComponent(KEY) + '&type=default', _fetch_params);
  53. //log("yyets search result>>>>>>>>>>>>>>>" + new_html);
  54. let json=JSON.parse(new_html);
  55. let d=[];
  56. for(const it in json.comment){
  57. if (json.comment.hasOwnProperty(it)){
  58. log("yyets search it>>>>>>>>>>>>>>>" + JSON.stringify(json.comment[it]));
  59. if (/(www.aliyundrive.com|pan.quark.cn|www.alipan.com)/.test(json.comment[it].comment)){
  60. let its = json.comment[it].comment.split("\\n");
  61. let i=0;
  62. while(i<its.length){
  63. let title=its[i].trim().replaceAll(/\\s+/g," ");
  64. if (title.length==0){
  65. i++;
  66. continue;
  67. }
  68. let urls=[];
  69. log("yyets search title>>>>>>>>>>>>>>>" + title);
  70. while(++i<its.length){
  71. log("yyets search url>>>>>>>>>>>>>>>" + its[i]);
  72. let burl = its[i].trim().split(" ")[0];
  73. if (burl.length==0){
  74. continue;
  75. }
  76. if (burl.includes("https://")){
  77. urls.push("https:"+burl.split("https:")[1]);
  78. }else{
  79. break;
  80. }
  81. }
  82. if (urls.length>0){
  83. log("yyets search title,urls>>>>>>>>>>>>>>>" + title + ",[" + JSON.stringify(urls) + "]");
  84. if (title.includes(KEY)){
  85. urls.forEach(function (url) {
  86. d.push({
  87. title:title,
  88. img:'',
  89. content:json.comment[it].comment,
  90. desc:json.comment[it].date,
  91. url:'push://'+url
  92. });
  93. });
  94. }
  95. }
  96. }
  97. }
  98. }
  99. }
  100. setResult(d);
  101. `,
  102. }