磁力熊.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. var rule = {
  2. title:'磁力熊[磁]',
  3. host:'https://www.cilixiong.com',
  4. homeUrl:'/top250/index.html',
  5. // url: '/fyclass/index_(fypage-1).html',
  6. url: '/fyclassfyfilter-(fypage-1).html',
  7. filter_url:'-{{fl.class or "0"}}-{{fl.area or "0"}}',
  8. filter:{
  9. "1":[{"key":"class","name":"类型","value":[{"n":"全部","v":"0"},{"n":"剧情","v":"1"},{"n":"喜剧","v":"2"},{"n":"惊悚","v":"3"},{"n":"动作","v":"4"},{"n":"爱情","v":"5"},{"n":"犯罪","v":"6"},{"n":"恐怖","v":"7"},{"n":"冒险","v":"8"},{"n":"悬疑","v":"9"},{"n":"科幻","v":"10"},{"n":"家庭","v":"11"},{"n":"奇幻","v":"12"},{"n":"动画","v":"13"},{"n":"战争","v":"14"},{"n":"历史","v":"15"},{"n":"传记","v":"16"},{"n":"音乐","v":"17"},{"n":"歌舞","v":"18"},{"n":"运动","v":"19"},{"n":"西部","v":"20"},{"n":"灾难","v":"21"},{"n":"古装","v":"22"},{"n":"情色","v":"23"},{"n":"同性","v":"24"},{"n":"儿童","v":"25"},{"n":"纪录片","v":"26"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":"0"},{"n":"大陆","v":"1"},{"n":"香港","v":"2"},{"n":"台湾","v":"3"},{"n":"美国","v":"4"},{"n":"日本","v":"5"},{"n":"韩国","v":"6"},{"n":"英国","v":"7"},{"n":"法国","v":"8"},{"n":"德国","v":"9"},{"n":"印度","v":"10"},{"n":"泰国","v":"11"},{"n":"丹麦","v":"12"},{"n":"瑞典","v":"13"},{"n":"巴西","v":"14"},{"n":"加拿大","v":"15"},{"n":"俄罗斯","v":"16"},{"n":"意大利","v":"17"},{"n":"比利时","v":"18"},{"n":"爱尔兰","v":"19"},{"n":"西班牙","v":"20"},{"n":"澳大利亚","v":"21"},{"n":"波兰","v":"22"},{"n":"土耳其","v":"23"},{"n":"越南","v":"24"}]}],
  10. "2":[{"key":"class","name":"类型","value":[{"n":"全部","v":"0"},{"n":"剧情","v":"1"},{"n":"喜剧","v":"2"},{"n":"惊悚","v":"3"},{"n":"动作","v":"4"},{"n":"爱情","v":"5"},{"n":"犯罪","v":"6"},{"n":"恐怖","v":"7"},{"n":"冒险","v":"8"},{"n":"悬疑","v":"9"},{"n":"科幻","v":"10"},{"n":"家庭","v":"11"},{"n":"奇幻","v":"12"},{"n":"动画","v":"13"},{"n":"战争","v":"14"},{"n":"历史","v":"15"},{"n":"传记","v":"16"},{"n":"音乐","v":"17"},{"n":"歌舞","v":"18"},{"n":"运动","v":"19"},{"n":"西部","v":"20"},{"n":"灾难","v":"21"},{"n":"古装","v":"22"},{"n":"情色","v":"23"},{"n":"同性","v":"24"},{"n":"儿童","v":"25"},{"n":"纪录片","v":"26"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":"0"},{"n":"大陆","v":"1"},{"n":"香港","v":"2"},{"n":"台湾","v":"3"},{"n":"美国","v":"4"},{"n":"日本","v":"5"},{"n":"韩国","v":"6"},{"n":"英国","v":"7"},{"n":"法国","v":"8"},{"n":"德国","v":"9"},{"n":"印度","v":"10"},{"n":"泰国","v":"11"},{"n":"丹麦","v":"12"},{"n":"瑞典","v":"13"},{"n":"巴西","v":"14"},{"n":"加拿大","v":"15"},{"n":"俄罗斯","v":"16"},{"n":"意大利","v":"17"},{"n":"比利时","v":"18"},{"n":"爱尔兰","v":"19"},{"n":"西班牙","v":"20"},{"n":"澳大利亚","v":"21"},{"n":"波兰","v":"22"},{"n":"土耳其","v":"23"},{"n":"越南","v":"24"}]}]
  11. },
  12. searchUrl: '/e/search/index.php#classid=1,2&show=title&tempid=1&keyboard=**;post',
  13. searchable:2,
  14. quickSearch:0,
  15. filterable:1,
  16. headers:{
  17. 'User-Agent': 'MOBILE_UA'
  18. },
  19. timeout:5000,
  20. class_name:'电影&剧集&豆瓣电影Top250&IMDB Top250&高分悬疑片&高分喜剧片&高分传记片&高分爱情片&高分犯罪片&高分恐怖片&高分冒险片&高分武侠片&高分奇幻片&高分历史片&高分战争片&高分歌舞片&高分灾难片&高分情色片&高分西部片&高分音乐片&高分科幻片&高分动作片&高分动画片&高分纪录片&冷门佳片',
  21. class_url:'1&2&/top250/&/s/imdbtop250/&/s/suspense/&/s/comedy/&/s/biopic/&/s/romance/&/s/crime/&/s/horror/&/s/adventure/&/s/martial/&/s/fantasy/&/s/history/&/s/war/&/s/musical/&/s/disaster/&/s/erotic/&/s/west/&/s/music/&/s/sci-fi/&s/action/&/s/animation/&/s/documentary/&/s/unpopular/',
  22. play_parse:true,
  23. lazy:'',
  24. limit:6,
  25. 推荐: `js:
  26. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  27. var d = [];
  28. var html = request(input);
  29. var list = pdfa(html, 'body&&.col');
  30. list.forEach(it => {
  31. d.push({
  32. title: pdfh(it, 'h2&&Text'),
  33. desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
  34. // pic_url: pd(it, '.card-img&&style'), // 只有 影视TV&爱佬版 有图片
  35. pic_url: /!'/.test(pd(it, '.card-img&&style'))?pd(it, '.card-img&&style'):pd(it, '.card-img&&style').replaceAll("'",""), // 兼容 影视TV&爱佬版 以外的其它壳子
  36. url: pd(it, 'a&&href')
  37. });
  38. })
  39. setResult(d);
  40. `,
  41. 一级: `js:
  42. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  43. var d = [];
  44. if (MY_CATE !== '1' && MY_CATE !== '2') {
  45. let turl = (MY_PAGE === 1)? 'index' : 'index_'+ MY_PAGE;
  46. input = HOST + MY_CATE + turl + '.html';
  47. }
  48. var html = request(input);
  49. var list = pdfa(html, 'body&&.col');
  50. list.forEach(it => {
  51. d.push({
  52. title: pdfh(it, 'h2&&Text'),
  53. desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
  54. // pic_url: pdfh(it, '.card-img&&style'), // 只有 影视TV&爱佬版 有图片
  55. pic_url: /!'/.test(pd(it, '.card-img&&style'))?pd(it, '.card-img&&style'):pd(it, '.card-img&&style').replaceAll("'",""), // 兼容 影视TV&爱佬版 以外的其它壳子
  56. url: pd(it, 'a&&href')
  57. });
  58. })
  59. setResult(d);
  60. `,
  61. 二级:{
  62. title:'h1&&Text;p.mb-2:eq(4)&&Text',
  63. desc:'p.mb-2:eq(1)&&Text;;;p.mb-2:eq(7)&&Text;p.mb-2:eq(5)&&Text',
  64. img:'.rounded-2&&src',
  65. content:'.mv_card_box&&Text',
  66. // tabs:'js:TABS = ["道长磁力"]',
  67. // lists:'.mv_down:eq(#id)&&.border-bottom',
  68. // list_text:'a&&Text',
  69. // list_url:'a&&href',
  70. tabs:'js:TABS = ["道长磁力","道长在线预览"]',
  71. lists:`js:
  72. log(TABS);
  73. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  74. LISTS = [];
  75. var dd=[];
  76. TABS.forEach(function(tab) {
  77. if (/道长磁力/.test(tab)) {
  78. var d = pdfa(html, '.mv_down&&.border-bottom');
  79. d = d.map(function(it) {
  80. var title = pdfh(it, 'a&&Text');
  81. log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
  82. var burl = pd(it, 'a&&href');
  83. log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
  84. return title + '$' + burl
  85. });
  86. LISTS.push(d)
  87. } else if (/道长在线预览/.test(tab)) {
  88. var d = pd(html, 'iframe&&src');
  89. if (d) {
  90. d=['第一集在线播放预览$' + d]
  91. } else {
  92. d=['没有预览不要点$http://www.sharenice.net/douyin/23852']
  93. }
  94. LISTS.push(d)
  95. }
  96. });
  97. `,
  98. },
  99. 搜索:'.col;h2&&Text;.card-img&&style;.me-auto&&Text;a&&href',
  100. }