yingso.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. var rule = {
  2. title:'影搜',
  3. host:'https://yingso.fun:3001/',
  4. url:'',
  5. detailUrl:'/pgc/view/web/season?season_id=fyid',
  6. filter_url:'fl={{fl}}',
  7. searchUrl:'/x/web-interface/search/type?keyword=**&page=fypage&search_type=',
  8. searchable:1,
  9. filterable:1,
  10. quickSearch:0,
  11. headers:{
  12. 'User-Agent': PC_UA,
  13. 'Accept': '*/*',
  14. 'Referer': 'https://yingso.fun',
  15. 'Content-Type': 'application/json'
  16. },
  17. timeout:5000,
  18. class_name:'电影&电视&短剧&动漫&综艺&教育&课程&书籍&音乐&其他',
  19. class_url:'dy&ds&dj&dm&zy&jy&kc&sj&yy&qt',
  20. play_parse:true,
  21. lazy:`js:
  22. input = panPlay(input,playObj.flag)
  23. `,
  24. limit:5,
  25. 推荐:`js:
  26. function parseVodList(resp) {
  27. const jsons = resp;
  28. const videos = [];
  29. for(const item of jsons.data){
  30. let vod = [];
  31. if(item.root ==1)
  32. vod ={
  33. vod_id: 'https://www.aliyundrive.com/s/' + item.key,
  34. vod_name: item.title,
  35. vod_pic: 'https://inews.gtimg.com/newsapp_bt/0/13263837859/1000',
  36. vod_remarks: "",
  37. };
  38. else if(item.root == 2)
  39. vod ={
  40. vod_id: 'https://pan.quark.cn/s/' + item.key,
  41. vod_name: item.title,
  42. vod_pic: 'https://i2.100024.xyz/2024/03/15/o4d8hp.webp',
  43. vod_remarks: "",
  44. };
  45. else continue;
  46. videos.push(vod);
  47. }
  48. return videos;
  49. }
  50. let url = rule.homeUrl + "/v3/ali/all";
  51. let body = {"root":0, "pageSize": 30,"cat":"all","pageNum":1}
  52. let data = JSON.stringify(body)
  53. let html = request(url, {headers:rule.headers, body:data, method:'POST'}, true);
  54. let resp = JSON.parse(html);
  55. VODS = parseVodList(resp)
  56. `,
  57. 一级:`js:
  58. function parseVodList(resp) {
  59. const jsons = resp;
  60. const videos = [];
  61. for(const item of jsons.data){
  62. let vod = [];
  63. if(item.root ==1)
  64. vod ={
  65. vod_id: 'https://www.aliyundrive.com/s/' + item.key,
  66. vod_name: item.title,
  67. vod_pic: 'https://inews.gtimg.com/newsapp_bt/0/13263837859/1000',
  68. vod_remarks: "",
  69. };
  70. else if(item.root == 2)
  71. vod ={
  72. vod_id: 'https://pan.quark.cn/s/' + item.key,
  73. vod_name: item.title,
  74. vod_pic: 'https://i2.100024.xyz/2024/03/15/o4d8hp.webp',
  75. vod_remarks: "",
  76. };
  77. else continue;
  78. videos.push(vod);
  79. }
  80. return videos;
  81. }
  82. let url = rule.homeUrl + "/v3/ali/all";
  83. let body = {"root":0,"pageSize": 30,"cat":MY_CATE,"pageNum":MY_PAGE};
  84. let data = JSON.stringify(body)
  85. let html = request(url, {headers:rule.headers, body:data, method:'POST'}, true);
  86. let resp = JSON.parse(html);
  87. VODS = parseVodList(resp)
  88. `,
  89. 二级:`js:
  90. let id=input;
  91. let title="";
  92. let pic="";
  93. let typeName="";
  94. let dec=id;
  95. let remark="";
  96. let vod={vod_id:id,vod_name:title,vod_pic:pic,type_name:typeName,vod_remarks:remark,vod_content:dec};
  97. initPan();
  98. let panVod = panDetailContent(vod ,[input]);
  99. TABS = panVod.tabs
  100. LISTS = panVod.lists
  101. detailError = panVod.error
  102. vod["vod_play_from"]=panVod.tabs.join("$$$");
  103. for (var i in LISTS) {
  104. if (LISTS.hasOwnProperty(i)) {
  105. // print(i);
  106. try {
  107. LISTS[i] = LISTS[i].map(function (it) {
  108. return it.split('$').slice(0, 2).join('$');
  109. });
  110. } catch (e) {
  111. print('格式化LISTS发生错误:' + e.message);
  112. }
  113. }
  114. }
  115. vod_play_url = LISTS.map(function (it) {
  116. return it.join('#');
  117. }).join("$$$");
  118. vod["vod_play_url"]=vod_play_url;
  119. VOD=vod;
  120. `,
  121. 搜索:`js:
  122. function parseVodList(resp) {
  123. const jsons = resp;
  124. const videos = [];
  125. for(const item of jsons.data){
  126. let vod = [];
  127. if(item.root ==1)
  128. vod ={
  129. vod_id: 'https://www.aliyundrive.com/s/' + item.key,
  130. vod_name: item.title,
  131. vod_pic: 'https://inews.gtimg.com/newsapp_bt/0/13263837859/1000',
  132. vod_remarks: "",
  133. };
  134. else if(item.root == 2)
  135. vod ={
  136. vod_id: 'https://pan.quark.cn/s/' + item.key,
  137. vod_name: item.title,
  138. vod_pic: 'https://i2.100024.xyz/2024/03/15/o4d8hp.webp',
  139. vod_remarks: "",
  140. };
  141. else continue;
  142. videos.push(vod);
  143. }
  144. return videos;
  145. }
  146. let url = rule.homeUrl + "/v3/ali/search";
  147. let body = {"root":0,"pageSize": 30,"cat":"all","title":KEY,"pageNum":1};
  148. let data = JSON.stringify(body)
  149. let html = request(url, {headers:rule.headers, body:data, method:'POST'}, true);
  150. let resp = JSON.parse(html);
  151. VODS = parseVodList(resp)
  152. `,
  153. }