私人影院.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. var rule={
  2. title:'私人影院(被窝电影)',
  3. // host:'https://www.bei5dy.com',
  4. host:'https://www.bei5dy.net',
  5. url:'/show/fyfilter/',
  6. filterable:1,//是否启用分类筛选,
  7. filter_url:'{{fl.cateId}}-{{fl.area}}-{{fl.by}}-{{fl.class}}-{{fl.lang}}-{{fl.letter}}---fypage---{{fl.year}}',
  8. filter:{
  9. "dianying":[{"key":"cateId","name":"类型","value":[{"n":"全部","v":"dianying"},{"n":"动作片","v":"dongzuopian"},{"n":"喜剧片","v":"xijupian"},{"n":"爱情片","v":"aiqingpian"},{"n":"科幻片","v":"kehuanpian"},{"n":"恐怖片","v":"kongbupian"},{"n":"剧情片","v":"juqingpian"},{"n":"战争片","v":"zhanzhengpian"},{"n":"综合片","v":"lunlipian"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"大陆"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"},{"n":"美国","v":"美国"},{"n":"法国","v":"法国"},{"n":"英国","v":"英国"},{"n":"日本","v":"日本"},{"n":"韩国","v":"韩国"},{"n":"德国","v":"德国"},{"n":"泰国","v":"泰国"},{"n":"印度","v":"印度"},{"n":"意大利","v":"意大利"},{"n":"西班牙","v":"西班牙"},{"n":"加拿大","v":"加拿大"},{"n":"其他","v":"其他"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010~2001","v":"2010~2001"},{"n":"2000~1991","v":"2000~1991"},{"n":"1990~1960","v":"1990~1960"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"法语","v":"法语"},{"n":"德语","v":"德语"},{"n":"其它","v":"其它"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}],
  10. "dianshiju":[{"key":"cateId","name":"类型","value":[{"n":"全部","v":"dianshiju"},{"n":"国产剧","v":"guochanju"},{"n":"港台剧","v":"gangtaiju"},{"n":"日韩剧","v":"rihanju"},{"n":"欧美剧","v":"oumeiju"},{"n":"其他剧","v":"qitaju"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"大陆"},{"n":"韩国","v":"韩国"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"},{"n":"日本","v":"日本"},{"n":"美国","v":"美国"},{"n":"泰国","v":"泰国"},{"n":"英国","v":"英国"},{"n":"新加坡","v":"新加坡"},{"n":"其他","v":"其他"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010~2001","v":"2010~2001"},{"n":"2000~1991","v":"2000~1991"},{"n":"1990~1960","v":"1990~1960"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"其它","v":"其它"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}],
  11. "zongyi":[{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"大陆"},{"n":"港台","v":"港台"},{"n":"日韩","v":"日韩"},{"n":"欧美","v":"欧美"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010~2001","v":"2010~2001"},{"n":"2000~1991","v":"2000~1991"},{"n":"1990~1960","v":"1990~1960"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"其它","v":"其它"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}],
  12. "dongman":[{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"大陆"},{"n":"日本","v":"日本"},{"n":"欧美","v":"欧美"},{"n":"其他","v":"其他"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010~2001","v":"2010~2001"},{"n":"2000~1991","v":"2000~1991"},{"n":"1990~1960","v":"1990~1960"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"其它","v":"其它"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}]
  13. },
  14. filter_def:{
  15. dianying:{cateId:'dianying'},
  16. dianshiju:{cateId:'dianshiju'},
  17. zongyi:{cateId:'zongyi'},
  18. dongman:{cateId:'dongman'}
  19. },
  20. searchUrl:'/search/**----------fypage---/',
  21. searchable:2,
  22. quickSearch:0,
  23. headers:{
  24. 'User-Agent':'MOBILE_UA'
  25. },
  26. timeout:5000,//网站的全局请求超时,默认是3000毫秒
  27. // class_parse: '.stui-header__menu&&li;a&&Text;a&&href;.*/(\\w+)/',
  28. class_name:'电影&电视剧&动漫&综艺',
  29. class_url:'dianying&dianshiju&zongyi&dongman',
  30. play_parse:true,
  31. lazy:`js:
  32. var html = request(input, {
  33. withHeaders: true
  34. });
  35. let json = JSON.parse(html);
  36. let setCk = Object.keys(json).find(it => it.toLowerCase() === "set-cookie");
  37. let cookie = setCk ? json[setCk].split(";")[0] : "";
  38. fetch_params.headers.Cookie = cookie;
  39. html = JSON.parse(html).body;
  40. if (/检测中/.test(html)) {
  41. html = request(input + "?btwaf" + html.match(/btwaf(.*?)\"/)[1], fetch_params)
  42. }
  43. var phtml = JSON.parse(html.match(/r player_.*?=(.*?)</)[1]);
  44. var url = phtml.url;
  45. if (phtml.encrypt == '1') {
  46. url = unescape(url)
  47. } else if (phtml.encrypt == '2') {
  48. url = unescape(base64Decode(url))
  49. }
  50. if (/m3u8|mp4/.test(url)) {
  51. input = url
  52. } else {
  53. input
  54. }
  55. `,
  56. 推荐:'*',
  57. 一级:`js:
  58. var d = [];
  59. pdfh = jsp.pdfh;
  60. pdfa = jsp.pdfa;
  61. pd = jsp.pd;
  62. var html = request(input, {
  63. withHeaders: true
  64. });
  65. let json = JSON.parse(html);
  66. let setCk = Object.keys(json).find(it => it.toLowerCase() === "set-cookie");
  67. let cookie = setCk ? json[setCk].split(";")[0] : "";
  68. fetch_params.headers.Cookie = cookie;
  69. html = JSON.parse(html).body;
  70. if (/检测中/.test(html)) {
  71. html = request(input + "?btwaf" + html.match(/btwaf(.*?)\"/)[1], fetch_params)
  72. }
  73. let list = pdfa(html, "ul.stui-vodlist&&li");
  74. list.forEach(it => {
  75. d.push({
  76. title: pdfh(it, "a&&title"),
  77. desc: pdfh(it, ".pic-text&&Text"),
  78. pic_url: pd(it, ".lazyload&&data-original"),
  79. url: pd(it, "a&&href")
  80. })
  81. });
  82. setResult(d)
  83. `,
  84. 二级:`js:
  85. pdfh = jsp.pdfh;
  86. pdfa = jsp.pdfa;
  87. pd = jsp.pd;
  88. VOD = {};
  89. var html = request(input, {
  90. withHeaders: true
  91. });
  92. let json = JSON.parse(html);
  93. let setCk = Object.keys(json).find((it) => it.toLowerCase() === "set-cookie");
  94. let cookie = setCk ? json[setCk].split(";")[0] : "";
  95. fetch_params.headers.Cookie = cookie;
  96. html = JSON.parse(html).body;
  97. if (/检测中/.test(html)) {
  98. html = request(input + "?btwaf" + html.match(/btwaf(.*?)\"/)[1], fetch_params)
  99. }
  100. VOD.vod_name = pdfh(html, ".stui-content__detail&&h1--span&&Text");
  101. VOD.type_name = pdfh(html, ".data--span:eq(0)&&Text");
  102. VOD.vod_pic = pd(html, ".stui-content__thumb&&img&&data-original");
  103. VOD.vod_remarks = pdfh(html, ".stui-content__thumb&&pic-text&&Text");
  104. VOD.vod_actor = pdfh(html, ".data--span:eq(1)&&Text");
  105. VOD.vod_director = pdfh(html, ".data--span:eq(2)&&Text");
  106. VOD.vod_content = pdfh(html, ".desc.hidden-xs--a&&Text");
  107. let playFrom = [];
  108. let vod_tab_list = [];
  109. let tabs = pdfa(html, "body .stui-pannel__head.bottom-line");
  110. tabs.forEach((it) => {
  111. playFrom.push(pdfh(it, "h3&&Text"))
  112. });
  113. for (let i = 0; i < playFrom.length; i++) {
  114. let p1 = ".stui-content__playlist:eq(#id)&&li".replaceAll("#id", i);
  115. let new_vod_list = [];
  116. let vodList = [];
  117. try {
  118. vodList = pdfa(html, p1)
  119. } catch (e) {}
  120. for (let i = 0; i < vodList.length; i++) {
  121. let it = vodList[i];
  122. new_vod_list.push(pdfh(it, "body&&Text").trim() + "$" + pd(it, "a&&href"))
  123. }
  124. let vlist = new_vod_list.join("#");
  125. vod_tab_list.push(vlist)
  126. }
  127. VOD.vod_play_from = playFrom.join("$$$");
  128. VOD.vod_play_url = vod_tab_list.join("$$$");
  129. `,
  130. 搜索:`js:
  131. var d = [];
  132. pdfh = jsp.pdfh;
  133. pdfa = jsp.pdfa;
  134. pd = jsp.pd;
  135. var html = request(input, {
  136. withHeaders: true
  137. });
  138. let json = JSON.parse(html);
  139. let setCk = Object.keys(json).find(it => it.toLowerCase() === "set-cookie");
  140. let cookie = setCk ? json[setCk].split(";")[0] : "";
  141. fetch_params.headers.Cookie = cookie;
  142. html = JSON.parse(html).body;
  143. if (/检测中/.test(html)) {
  144. html = request(input + "?btwaf" + html.match(/btwaf(.*?)\"/)[1], fetch_params)
  145. }
  146. let list = pdfa(html, ".stui-vodlist__media&&li");
  147. list.forEach(it => {
  148. d.push({
  149. title: pdfh(it, "a&&title"),
  150. desc: pdfh(it, ".pic-text&&Text"),
  151. pic_url: pd(it, ".lazyload&&data-original"),
  152. url: pd(it, "a&&href")
  153. })
  154. });
  155. setResult(d)
  156. `,
  157. }