迅雷.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. globalThis.ssvod = function(wd) {
  2. var html1 = fetch(host + 's/{wd}.html', {
  3. method: 'GET',
  4. headers: {
  5. headers: {
  6. 'User-Agent': 'MOBILE_UA',
  7. 'cookie': 'PHPSESSID=irhqhr6891n9bvvld0dc4kop3o',
  8. },
  9. }});
  10. let html = JSON.parse(html1);//$
  11. return html;
  12. }
  13. var rule = {
  14. 模板: '自动',
  15. title: 'xunlei8',
  16. host: 'https://xunlei8.cc/',
  17. headers: {'User-Agent': 'MOBILE_UA','cookie': 'PHPSESSID=irhqhr6891n9bvvld0dc4kop3o'},
  18. url: 'fyclass-fyfilter-date-fypage-30.html',
  19. //filter_url:'{{fl.类型 or "0"}}-{{fl.年份 or "0"}}-{{fl.地区 or "0"}}',
  20. filter_url:'{{fl.类型}}-{{fl.年份}}-{{fl.地区}}',
  21. class_name: '电视剧&电影片',
  22. class_url: 'tv&list',
  23. //searchUrl: '/s/**.html',
  24. searchable:2,
  25. quickSearch:0,
  26. filterable:1,
  27. play_parse:true,
  28. //搜索:`body&&.bf3b11b08;h2.b586afc9 a span&&title;a img&&src;span.b9b4a&&Text;a&&href;`,
  29. 一级: 'div.bf3b11b08&&.b33c0;span.b355d4cd397&&Text;img&&src;.b8b0339168&&Text;a&&href',
  30. //一级: 'div.bf3b11b08&&.b33c0;span.b355d4cd397&&Text;img&&src;span.b9b4a&&Text;a&&href',
  31. 二级: {
  32. "title": ".b007 h1&&Text;.b044b3&&Text",
  33. "img": "img&&src",
  34. "desc": "p:eq(1)&&Text;p:eq(2)&&Text;p:eq(3)&&Text;p.b86e6c&&Text",
  35. "content": "p.b1f40f7888&&Text",
  36. tabs:'js:TABS = ["尤东风💠磁力"]',
  37. lists:`js:
  38. log(TABS);
  39. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  40. LISTS = [];
  41. var d = pdfa(html, 'div.bf8243b9 ul&&a.baf6e960dd');
  42. d = d.map(function(it) {
  43. var title = pdfh(it, 'a[href^=thunder]&&Text');
  44. var burl = pd(it, 'a[href^=thunder]&&href');
  45. return title + '$' + burl
  46. });
  47. LISTS.push(d.reverse())//.reverse()倒序
  48. `,
  49. },
  50. 搜索: $js.toString(() => {
  51. let data = ssvod(input);
  52. let bata = JSON.parse(data).bf3b11b08;
  53. bata.forEach(it => {
  54. d.push({
  55. url: it.vod_id,
  56. title: it.vod_name,
  57. img: it.vod_pic,
  58. desc: it.vod_remarks
  59. });
  60. });
  61. // console.log(data);
  62. setResult(d);
  63. }),
  64. filter:
  65. {
  66. "tv": [
  67. {"key": "类型","name": "类型","value":
  68. [
  69. {"n": "全部","v": "0"},{"n": "科幻","v": "科幻"},{"n": "悬疑","v": "悬疑"},{"n": "奇幻","v": "奇幻"},
  70. {"n": "战争","v": "战争"},{"n": "动作","v": "动作"},{"n": "武侠","v": "武侠"},{"n": "犯罪","v": "犯罪"},
  71. {"n": "纪录片","v": "纪录片"},{"n": "剧情","v": "剧情"},{"n": "冒险","v": "冒险"},{"n": "恐怖","v": "恐怖"},
  72. {"n": "历史","v": "历史"},{"n": "动画","v": "动画"},{"n": "情色","v": "情色"},{"n": "家庭","v": "家庭"}
  73. ]
  74. },
  75. {"key": "年份","name": "年份","value":
  76. [
  77. {"n": "全部","v": "0"},{"n": "2024","v": "2024"},{"n": "2023","v": "2023"},{"n": "2022","v": "2022"},
  78. {"n": "2021","v": "2021"},
  79. {"n": "2020","v": "2020"},{"n": "2019","v": "2019"},{"n": "2018","v": "2018"},{"n": "2017","v": "2017"},
  80. {"n": "2016","v": "2016"},{"n": "2015","v": "2015"},{"n": "2014","v": "2014"},{"n": "2013","v": "2013"},
  81. {"n": "2012","v": "2012"},{"n": "2011","v": "2011"},{"n": "2010","v": "2010"}
  82. ]
  83. },
  84. { "key":"地区","name":"地区","value":
  85. [
  86. {"n":"全部","v":"0"},{"n":"美国","v":"美国"},{"n":"中国大陆","v":"中国大陆"},{"n":"韩国","v":"韩国"},
  87. {"n":"日本","v":"日本"},{"n":"英国","v":"英国"},
  88. {"n":"印度","v":"印度"},{"n":"法国","v":"法国"},{"n":"俄罗斯","v":"俄罗斯"},{"n":"加拿大","v":"加拿大"},
  89. {"n":"德国","v":"德国"},{"n":"泰国","v":"泰国"},
  90. {"n":"西班牙","v":"西班牙"},{"n":"澳大利亚","v":"澳大利亚"},{"n":"意大利","v":"意大利"},
  91. {"n":"比利时","v":"比利时"},{"n":"中国台湾","v":"中国台湾"},
  92. {"n":"中国香港","v":"中国香港"}
  93. ]
  94. }
  95. ],
  96. "list": [
  97. {"key": "类型","name": "类型","value":
  98. [
  99. {"n": "全部","v": "0"},{"n": "科幻","v": "科幻"},{"n": "悬疑","v": "悬疑"},{"n": "奇幻","v": "奇幻"},
  100. {"n": "战争","v": "战争"},{"n": "动作","v": "动作"},{"n": "武侠","v": "武侠"},{"n": "犯罪","v": "犯罪"},
  101. {"n": "纪录片","v": "纪录片"},{"n": "剧情","v": "剧情"},{"n": "冒险","v": "冒险"},{"n": "恐怖","v": "恐怖"},
  102. {"n": "历史","v": "历史"},{"n": "动画","v": "动画"},{"n": "情色","v": "情色"},{"n": "家庭","v": "家庭"}
  103. ]
  104. },
  105. {"key": "year","name": "年份","value":
  106. [
  107. {"n": "全部","v": "0"},{"n": "2024","v": "2024"},{"n": "2023","v": "2023"},{"n": "2022","v": "2022"},
  108. {"n": "2021","v": "2021"},
  109. {"n": "2020","v": "2020"},{"n": "2019","v": "2019"},{"n": "2018","v": "2018"},{"n": "2017","v": "2017"},
  110. {"n": "2016","v": "2016"},{"n": "2015","v": "2015"},{"n": "2014","v": "2014"},{"n": "2013","v": "2013"},
  111. {"n": "2012","v": "2012"},{"n": "2011","v": "2011"},{"n": "2010","v": "2010"}
  112. ]
  113. },
  114. { "key":"地区","name":"地区","value":
  115. [
  116. {"n":"地区","v":"0"},{"n":"美国","v":"美国"},{"n":"中国大陆","v":"中国大陆"},{"n":"韩国","v":"韩国"},
  117. {"n":"日本","v":"日本"},{"n":"英国","v":"英国"},
  118. {"n":"印度","v":"印度"},{"n":"法国","v":"法国"},{"n":"俄罗斯","v":"俄罗斯"},{"n":"加拿大","v":"加拿大"},
  119. {"n":"德国","v":"德国"},{"n":"泰国","v":"泰国"},
  120. {"n":"西班牙","v":"西班牙"},{"n":"澳大利亚","v":"澳大利亚"},{"n":"意大利","v":"意大利"},
  121. {"n":"比利时","v":"比利时"},{"n":"中国台湾","v":"中国台湾"},
  122. {"n":"中国香港","v":"中国香港"}
  123. ]
  124. }
  125. ],
  126. },
  127. }