jiyingw.js 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. var rule = {
  2. title:'极影网[磁]',
  3. host:'https://www.jiyingw.net',
  4. homeUrl:'/',
  5. url: '/fyclass/page/fypage?',
  6. //host:'http://127.0.0.1:10079',
  7. //homeUrl:'/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.jiyingw.net',
  8. //url: '/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.jiyingw.net/fyclass/page/fypage?',
  9. filter_url:'{{fl.class}}',
  10. filter:{
  11. "movie":[{"key":"class","name":"标签","value":[{"n":"全部","v":"movie"},{"n":"4k","v":"tag/4k"}, {"n":"人性","v":"tag/人性"}, {"n":"传记","v":"tag/chuanji"}, {"n":"儿童","v":"tag/儿童"}, {"n":"冒险","v":"tag/adventure"}, {"n":"剧情","v":"tag/剧情"}, {"n":"加拿大","v":"tag/加拿大"}, {"n":"动作","v":"tag/dongzuo"}, {"n":"动漫","v":"tag/动漫"}, {"n":"励志","v":"tag/励志"}, {"n":"历史","v":"tag/history"}, {"n":"古装","v":"tag/古装"}, {"n":"同性","v":"tag/gay"}, {"n":"喜剧","v":"tag/comedy"}, {"n":"国剧","v":"tag/国剧"}, {"n":"奇幻","v":"tag/qihuan"}, {"n":"女性","v":"tag/女性"}, {"n":"家庭","v":"tag/family"}, {"n":"德国","v":"tag/德国"}, {"n":"恐怖","v":"tag/kongbu"}, {"n":"悬疑","v":"tag/xuanyi"}, {"n":"惊悚","v":"tag/jingsong"}, {"n":"意大利","v":"tag/意大利"}, {"n":"战争","v":"tag/zhanzheng"}, {"n":"战斗","v":"tag/战斗"}, {"n":"搞笑","v":"tag/搞笑"}, {"n":"故事","v":"tag/故事"}, {"n":"文艺","v":"tag/文艺"}, {"n":"日常","v":"tag/日常"}, {"n":"日本","v":"tag/日本"}, {"n":"日语","v":"tag/日语"}, {"n":"校园","v":"tag/校园"}, {"n":"武侠","v":"tag/wuxia"}, {"n":"法国","v":"tag/法国"}, {"n":"游戏","v":"tag/游戏"}, {"n":"灾难","v":"tag/zainan"}, {"n":"爱情","v":"tag/爱情"}, {"n":"犯罪","v":"tag/crime"}, {"n":"真人秀","v":"tag/zhenrenxiu"}, {"n":"短片","v":"tag/duanpian"}, {"n":"科幻","v":"tag/kehuan"}, {"n":"纪录","v":"tag/jilu"}, {"n":"美剧","v":"tag/meiju"}, {"n":"舞台","v":"tag/stage"}, {"n":"西部","v":"tag/xibu"}, {"n":"运动","v":"tag/yundong"}, {"n":"韩剧","v":"tag/韩剧"}, {"n":"韩国","v":"tag/韩国"}, {"n":"音乐","v":"tag/yinyue"}, {"n":"高清电影","v":"tag/高清电影"}]}]
  12. },
  13. searchUrl: '/?s=**',
  14. searchable:2,
  15. quickSearch:0,
  16. filterable:1,
  17. headers:{
  18. 'User-Agent': 'PC_UA',
  19. 'Cookie':'http://127.0.0.1:9978/file:///tvbox/JS/lib/jiyingw.txt',
  20. 'Accept':'*/*',
  21. 'Referer': 'https://www.jiyingw.net/'
  22. },
  23. timeout:5000,
  24. class_name:'电影&电视剧&动漫&综艺&影评',
  25. class_url:'movie&tv&cartoon&movie/variety&yingping',
  26. play_parse:true,
  27. play_json:[{
  28. re:'*',
  29. json:{
  30. parse:0,
  31. jx:0
  32. }
  33. }],
  34. lazy:'',
  35. limit:6,
  36. 推荐:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href',
  37. 一级:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href',
  38. 二级:{
  39. title:"h1&&Text",
  40. img:"#post_content img&&src",
  41. desc:"#post_content&&Text",
  42. content:"#post_content&&Text",
  43. tabs:`js:
  44. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  45. TABS=[]
  46. let tabsa = [];
  47. let tabsq = [];
  48. let tabsm = false;
  49. let tabse = false;
  50. let d = pdfa(html, '#post_content p a');
  51. d.forEach(function(it) {
  52. let burl = pdfh(it, 'a&&href');
  53. if (burl.startsWith("https://www.aliyundrive.com/s/")){
  54. tabsa.push("阿里云盤");
  55. }else if (burl.startsWith("https://pan.quark.cn/s/")){
  56. tabsq.push("夸克云盤");
  57. }else if (burl.startsWith("magnet")){
  58. tabsm = true;
  59. }else if (burl.startsWith("ed2k")){
  60. tabse = true;
  61. }
  62. });
  63. d = pdfa(html, 'div#down p.down-list3 a');
  64. d.forEach(function(it) {
  65. let burl = pdfh(it, 'a&&href');
  66. if (burl.startsWith("https://www.aliyundrive.com/s/")){
  67. tabsa.push("阿里云盤");
  68. }else if (burl.startsWith("https://pan.quark.cn/s/")){
  69. tabsq.push("夸克云盤");
  70. }else if (burl.startsWith("magnet")){
  71. tabsm = true;
  72. }else if (burl.startsWith("ed2k")){
  73. tabse = true;
  74. }
  75. });
  76. if (tabsm === true){
  77. TABS.push("磁力");
  78. }
  79. if (tabse === true){
  80. TABS.push("電驢");
  81. }
  82. if (tabsa.length + tabsq.length > 1){
  83. TABS.push("選擇右側綫路");
  84. }
  85. let tmpIndex;
  86. tmpIndex=1;
  87. tabsa.forEach(function(it){
  88. TABS.push(it + tmpIndex);
  89. tmpIndex = tmpIndex + 1;
  90. });
  91. tmpIndex=1;
  92. tabsq.forEach(function(it){
  93. TABS.push(it + tmpIndex);
  94. tmpIndex = tmpIndex + 1;
  95. });
  96. log('jiyingw TABS >>>>>>>>>>>>>>>>>>' + TABS);
  97. `,
  98. lists:`js:
  99. log(TABS);
  100. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  101. LISTS = [];
  102. let lista = [];
  103. let listq = [];
  104. let listm = [];
  105. let liste = [];
  106. let d = pdfa(html, '#post_content p a');
  107. d.forEach(function(it){
  108. let burl = pdfh(it, 'a&&href');
  109. let title = pdfh(it, 'a&&Text');
  110. log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
  111. log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
  112. let loopresult = title + '$' + burl;
  113. if (burl.startsWith("https://www.aliyundrive.com/s/")){
  114. if (false){
  115. if (TABS.length==1){
  116. burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl);
  117. }else{
  118. burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
  119. }
  120. }else{
  121. burl = 'push://' + burl;
  122. }
  123. loopresult = title + '$' + burl;
  124. lista.push(loopresult);
  125. }else if (burl.startsWith("https://pan.quark.cn/s/")){
  126. if (false){
  127. if (TABS.length==1){
  128. burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
  129. }else{
  130. burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
  131. }
  132. }else{
  133. burl = 'push://' + burl;
  134. }
  135. loopresult = title + '$' + burl;
  136. listq.push(loopresult);
  137. }else if (burl.startsWith("magnet")){
  138. listm.push(loopresult);
  139. }else if (burl.startsWith("ed2k")){
  140. liste.push(loopresult);
  141. }
  142. });
  143. d = pdfa(html, 'div#down p.down-list3 a');
  144. d.forEach(function(it){
  145. let burl = pdfh(it, 'a&&href');
  146. let title = pdfh(it, 'a&&Text');
  147. log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
  148. log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
  149. let loopresult = title + '$' + burl;
  150. if (burl.startsWith("https://www.aliyundrive.com/s/")){
  151. if (false){
  152. if (TABS.length==1){
  153. burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl);
  154. }else{
  155. burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
  156. }
  157. }else{
  158. burl = 'push://' + burl;
  159. }
  160. loopresult = title + '$' + burl;
  161. lista.push(loopresult);
  162. }else if (burl.startsWith("https://pan.quark.cn/s/")){
  163. if (false){
  164. if (TABS.length==1){
  165. burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
  166. }else{
  167. burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
  168. }
  169. }else{
  170. burl = 'push://' + burl;
  171. }
  172. loopresult = title + '$' + burl;
  173. listq.push(loopresult);
  174. }else if (burl.startsWith("magnet")){
  175. listm.push(loopresult);
  176. }else if (burl.startsWith("ed2k")){
  177. liste.push(loopresult);
  178. }
  179. });
  180. if (listm.length>0){
  181. LISTS.push(listm);
  182. }
  183. if (liste.length>0){
  184. LISTS.push(liste);
  185. }
  186. if (lista.length + listq.length > 1){
  187. LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
  188. }
  189. lista.forEach(function(it){
  190. LISTS.push([it]);
  191. });
  192. listq.forEach(function(it){
  193. LISTS.push([it]);
  194. });
  195. `,
  196. },
  197. 搜索:`js:
  198. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  199. if (rule_fetch_params.headers.Cookie.startsWith("http")){
  200. rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
  201. let cookie = rule_fetch_params.headers.Cookie;
  202. setItem(RULE_CK, cookie);
  203. };
  204. log('jiyingw search cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
  205. let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
  206. let search_html=request(rule.homeUrl + '?s=' + encodeURIComponent(KEY), _fetch_params);
  207. let d=[];
  208. let dlist = pdfa(search_html, 'h2');
  209. log("jiyingw dlist.length>>>>>>>"+dlist.length);
  210. dlist.forEach(function(it){
  211. let title = pdfh(it, 'a&&title');
  212. //if (searchObj.quick === true){
  213. // title = KEY;
  214. //}
  215. let img = '';
  216. let content = title;
  217. let desc = title;
  218. let url = pd(it, 'a&&href', HOST);
  219. d.push({
  220. title:title,
  221. img:img,
  222. content:content,
  223. desc:desc,
  224. url:url
  225. })
  226. });
  227. setResult(d);
  228. `,
  229. }