libvio.js 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. // 永久网址:https://libvio.app
  2. muban.首图2.二级.title = 'h1&&Text;.data:eq(0)&&Text'
  3. muban.首图2.二级.desc = '.data.hidden-xs&&Text;;;.data:eq(1)&&Text;.data:eq(4)&&Text'
  4. muban.首图2.二级.content = '.detail-content&&Text'
  5. var rule = {
  6. title:'LIBVIO',
  7. 模板:'首图2',
  8. // host:'https://tv.libvio.cc',
  9. host:'https://tv.libvio.cc',
  10. //hostJs:'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src=jsp.pdfh(html,"li:eq(0)&&a:eq(0)&&href");print(src);HOST=src',
  11. // url:'/type/fyclass-fypage.html',
  12. url:'/show/fyclassfyfilter.html',
  13. // url:'/show_fyclassfyfilter.html',
  14. filterable:1,//是否启用分类筛选,
  15. filter_url:'-{{fl.area}}-{{fl.by}}--{{fl.lang}}----fypage---{{fl.year}}',
  16. filter: {
  17. "1":[{"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","v":"2010"}]},{"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"}]}],
  18. "2":[{"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","v":"2010"}]},{"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"}]}],
  19. "4":[{"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","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"}]},{"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"}]}],
  20. "27":[{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}],
  21. "15":[{"key":"area","name":"地区","value":[{"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","v":"2010"}]},{"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"}]}],
  22. "16":[{"key":"area","name":"地区","value":[{"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","v":"2010"}]},{"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"}]}]
  23. },
  24. headers:{//网站的请求头,完整支持所有的,常带ua和cookies
  25. 'User-Agent':'MOBILE_UA'
  26. },
  27. class_parse:'.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;/(\\d+).html',
  28. // class_parse:'.stui-header__menu li;a&&Text;a&&href;/.*_(\\d+).html',
  29. tab_exclude: '百度',
  30. pagecount:{"27":1},
  31. 二级: {
  32. "title": ".stui-content__detail .title&&Text;.stui-content__detail p:eq(-2)&&Text",
  33. "img": ".stui-content__thumb .lazyload&&data-original",
  34. "desc": ".stui-content__detail p:eq(0)&&Text;.stui-content__detail p:eq(1)&&Text;.stui-content__detail p:eq(2)&&Text",
  35. "content": ".detail&&Text",
  36. "tabs": `js:
  37. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  38. TABS=[];
  39. let tabsq=[];
  40. let tabsm3u8=[];
  41. let d = pdfa(html, 'div.stui-vodlist__head');
  42. d.forEach(function(it) {
  43. let name = pdfh(it, 'h3&&Text');
  44. if (!/(猜你|喜欢|剧情|热播)/.test(name)){
  45. log("libvio tabs name>>>>>>>>>>>>>>>" + name);
  46. if (name.includes("夸克")){
  47. tabsq.push("夸克網盤");
  48. }else if (name.includes("阿里")){
  49. tabsq.push("阿里雲盤");
  50. }else{
  51. tabsm3u8.push(name);
  52. }
  53. }
  54. });
  55. if (tabsq.length==1){
  56. TABS=TABS.concat(tabsq);
  57. }else{
  58. let tmpIndex=1;
  59. tabsq.forEach(function(it){
  60. TABS.push(it+tmpIndex);
  61. tmpIndex++;
  62. });
  63. }
  64. TABS=TABS.concat(tabsm3u8);
  65. log('libvio TABS >>>>>>>>>>>>>>>>>>' + TABS);
  66. `,
  67. "lists":`js:
  68. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  69. LISTS = [];
  70. let listq=[];
  71. let listm3u8=[];
  72. let d = pdfa(html, 'div.stui-vodlist__head');
  73. d.forEach(function(it){
  74. let name = pdfh(it, 'h3&&Text');
  75. if (!/(猜你|喜欢|剧情|热播)/.test(name)){
  76. log("libvio tabs name>>>>>>>>>>>>>>>" + name);
  77. let durl = pdfa(it, 'ul li');
  78. let dd = [];
  79. durl.forEach(function(it1){
  80. let dhref = pd(it1, 'a&&href', HOST);
  81. let dname = pdfh(it1, 'a&&Text');
  82. dd.push(dname + "$" + dhref);
  83. });
  84. if (/(夸克|阿里)/.test(name)){
  85. listq.push(dd);
  86. }else{
  87. listm3u8.push(dd);
  88. }
  89. }
  90. });
  91. LISTS=LISTS.concat(listq);
  92. LISTS=LISTS.concat(listm3u8);
  93. `,
  94. },
  95. lazy:`js:
  96. log("libvio lazy player input>>>>>>>>>>>>"+input);
  97. var html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
  98. log("libvio lazy player json>>>>>>>>>>>>"+JSON.stringify(html));
  99. var url = html.url;
  100. var from = html.from;
  101. var next = html.link_next;
  102. var id = html.id;
  103. var nid = html.nid;
  104. if (/(aliyundrive.com|quark.cn|alipan.com)/.test(url)){
  105. let confirm = "";
  106. if (TABS.length==1){
  107. confirm="&confirm=0";
  108. }
  109. let type="ali";
  110. if (url.includes("aliyundrive.com") || url.includes("alipan.com")){
  111. type = "ali";
  112. }else if (url.includes("quark.cn")){
  113. type = "quark";
  114. }
  115. input = {
  116. jx: 0,
  117. url: 'http://127.0.0.1:9978/proxy?do=' + type +'&type=push' + confirm + '&url=' + encodeURIComponent(url),
  118. parse: 0
  119. }
  120. }else{
  121. var paurl = request("https://libvio.cc/static/player/" + from + ".js").match(/ src="(.*?)'/)[1];
  122. if (/https/.test(paurl)) {
  123. var purl = paurl + url + "&next=" + next + "&id=" + id + "&nid=" + nid;
  124. input = {
  125. jx: 0,
  126. url: request(purl).match(/var .* = '(.*?)'/)[1],
  127. parse: 0
  128. }
  129. }
  130. }
  131. `,
  132. searchUrl:'/index.php/ajax/suggest?mid=1&wd=**&limit=50',
  133. detailUrl:'/detail/fyid.html', //非必填,二级详情拼接链接
  134. // detailUrl:'/detail_fyid.html', //非必填,二级详情拼接链接
  135. // searchUrl:'/search/**----------fypage---.html',
  136. 搜索:'json:list;name;pic;;id',
  137. }