jiyingw .js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. var rule = {
  2. title:'极影网[磁]',
  3. host:'https://www.jiyingw.net',
  4. homeUrl:'/',
  5. url: '/fyclass/page/fypage?',
  6. filter_url:'{{fl.class}}',
  7. filter:{
  8. "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/高清电影"}]}]
  9. },
  10. searchUrl: '/?s=**',
  11. searchable:2,
  12. quickSearch:1,
  13. filterable:1,
  14. headers:{
  15. 'User-Agent': 'PC_UA',
  16. 'Referer': 'https://www.jiyingw.net/'
  17. },
  18. timeout:5000,
  19. class_name:'电影&电视剧&动漫&综艺&影评',
  20. class_url:'movie&tv&cartoon&movie/variety&yingping',
  21. play_parse:false,
  22. lazy:'',
  23. limit:6,
  24. 推荐:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href',
  25. 一级:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href',
  26. 二级:{
  27. title:"h1&&Text",
  28. img:"#post_content img&&src",
  29. desc:"#post_content&&Text",
  30. content:".movie-introduce&&Text",
  31. tabs:`js:
  32. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  33. TABS=[]
  34. var d = pdfa(html, 'p.down-list3');
  35. var index=0;
  36. d.forEach(function(it) {
  37. let burl = pdfh(it, 'a&&href');
  38. log("burl >>>>>>" + burl);
  39. if (burl.startsWith("magnet")){
  40. let result = 'magnet' + index;
  41. index = index + 1;
  42. TABS.push(result);
  43. }
  44. });
  45. log('TABS >>>>>>>>>>>>>>>>>>' + TABS);
  46. `,
  47. lists:`js:
  48. log(TABS);
  49. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  50. LISTS = [];
  51. var d = pdfa(html, 'p.down-list3');
  52. TABS.forEach(function(tab) {
  53. log('tab >>>>>>>>' + tab);
  54. if (/^magnet/.test(tab)) {
  55. let targetindex = parseInt(tab.substring(6));
  56. let index = 0;
  57. d.forEach(function(it){
  58. let burl = pdfh(it, 'a&&href');
  59. if (burl.startsWith("magnet")){
  60. if (index == targetindex){
  61. let title = pdfh(it, 'a&&Text');
  62. log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
  63. log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
  64. let loopresult = title + '$' + burl;
  65. LISTS.push([loopresult]);
  66. }
  67. index = index + 1;
  68. }
  69. });
  70. }
  71. });
  72. `,
  73. },
  74. 搜索:'#post_container li.post;a.zoom&&title;a.zoom img&&src;.info&&Text;a&&href;.article&&Text',
  75. 预处理:`
  76. let new_host=HOST;
  77. let new_html=request(new_host, {withHeaders:true});
  78. let json=JSON.parse(new_html);
  79. let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie");
  80. let cookie=setCk?json[setCk].split(";")[0]:"";
  81. log("cookie:"+cookie);
  82. rule_fetch_params.headers.Cookie=cookie;
  83. setItem(RULE_CK,cookie);
  84. `,
  85. }