茶杯狐.js 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /**
  2. * 原创诺临风
  3. * 原创时间:2024-05-07
  4. * 转载请不要删除此版权声明
  5. */
  6. var rule = {
  7. title: "新茶杯狐",
  8. host: "https://www.cbhfox.com/",
  9. url: "/chbys/fyfilter.html",
  10. searchable: 2,
  11. quickSearch: 0,
  12. filterable: 1,
  13. detailUrl: "/cbhtv/fyid.html",
  14. homeUrl: "/label/hot.html",
  15. filter_url: "{{fl.cateId}}{{fl.area}}{{fl.by}}{{fl.class}}{{fl.lang}}{{fl.letter}}/page/fypage{{fl.year}}",
  16. filter: 'H4sIAAAAAAAAA+2ZW1MaSRiG/wvXbjFjNse7nM/nc7ZyQbJUQtaQLdGtYlNWeYKgUVFKIa4Yk43nFUHjugiF/hlmgH+xDd180/MOVYyb1F71pe/z+k331+3wfvjW83PAFwwHgi88p3566/nFH/ac8jzv8oVCng5P0Pfaz340RlbMoQj7+TdfV6+/4QvW5chqbWi1LrMfPH0dQk2mmV+o3kYlr9CalkpsS9SzLEJrWsyBSbM/abcIjR40uloupeFBXKMHrUwZe0V4ENeoCu1NqsI1WkvsQ7kwAmvhWtNSzSwbY+t2i9BoLaPZSgksQpN2VJkuOnZU18iy9M6xI6HRcjPL5f1PsFyuUZVooja7BlW4RlU+rrM9QhWuHeKMzMGNSnIKLFwjy9CoOfgHWLhGrSvGjUgeWse1pqU2nzA/LNktQqMHJd9VRwrwIK5RX/Y3K9N/G6UtaA3JZIwvVr/greEaWSaiRnwbLFyjW3MwyY4Xbg3XrJNKm/NTeFINjSzDB5W/YOtCowaWpirFdKut2Ujf0/ov8FeAr9vvk94A6ZwxVnD7Blhcqc1Gm8+pF/KW8xljriQAndnyrJnPtvAJYDU7Z+7tt6rHAe1yf4KJNp+Q6I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ySUpALBNhhK1L5NhYYYdid3BJhUYVGlVoVKFRhUYVGlVo/F5f07LQ+Drok1KjSggqIaiEoBKCSggqIaiEoBLCq0BX768BX1BFBBURVERQEUFFBI+KCCoiqIjQjAh9/wLqgnhI8TMAAA==',
  17. filter_def: {
  18. dianying: {cateId: "dianying"},
  19. dianshiju: {cateId: "dianshiju"},
  20. zongyi: {cateId: "zongyi"},
  21. dongmna: {cateId: "dongmna"},
  22. jilupian: {cateId: "jilupian"},
  23. },
  24. class_name: "电影&剧集&动漫&综艺&记录片",
  25. class_url: "dianying&dianshiju&dongmna&zongyi&jilupian",
  26. headers: {
  27. "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/"
  28. },
  29. play_parse: true,
  30. lazy: `js:
  31. var html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
  32. var url = html.url;
  33. var from = html.from;
  34. if (html.encrypt == '1') {
  35. url = decodeURI(url)
  36. } else if (html.encrypt == '2') {
  37. url = decodeURI(base64Decode(url))
  38. }
  39. if (/\.m3u8|\.mp4/.test(url)) {
  40. input = url
  41. } else {
  42. var currentDate = new Date();
  43. var year = currentDate.getFullYear();
  44. var month = String(currentDate.getMonth() + 1).padStart(2, '0');
  45. var day = String(currentDate.getDate()).padStart(2, '0');
  46. const urlTime = year + month + day;
  47. var MacPlayerConfig = {};
  48. eval(fetch(HOST + '/static/js/playerconfig.js?t=' + urlTime).replace('var Mac', 'Mac'));
  49. var parseUrl = MacPlayerConfig.player_list[from].parse;
  50. if (parseUrl && parseUrl != "") {
  51. let $playUrl = "";
  52. if(parseUrl.startsWith("http")){
  53. $playUrl = parseUrl;
  54. }else{
  55. $playUrl = HOST + parseUrl;
  56. }
  57. input = {
  58. url: url,
  59. playUrl: $playUrl,
  60. parse: 1,
  61. header: JSON.stringify({
  62. 'user-agent': 'Mozilla/5.0',
  63. 'Origin': input
  64. })
  65. }
  66. } else {
  67. input
  68. }
  69. }
  70. `,
  71. 推荐: `js:
  72. let d = [];
  73. pdfh = jsp.pdfh;pdfa = jsp.pdfa;pd = jsp.pd;
  74. let html = request(input);
  75. let items = pdfa(html, "div.module-items div.module-card-item");
  76. function shuffleArray(array) {
  77. for (let i = array.length - 1; i > 0; i--) {
  78. const j = Math.floor(Math.random() * (i + 1));
  79. [array[i], array[j]] = [array[j], array[i]];
  80. }
  81. return array;
  82. }
  83. const shuffledArray = shuffleArray(items);
  84. shuffledArray.forEach(it => {
  85. d.push({
  86. url:pdfh(it,"div.module-card-item-title&&a&&href"),
  87. title:pdfh(it,"div.module-card-item-title&&a&&Text"),
  88. img:pdfh(it,"div.module-item-pic&&img&&data-original"),
  89. desc:pdfh(it,"div.module-card-item-class&&Text") + "/" + pdfh(it,"div.module-item-note&&Text")
  90. })
  91. });
  92. setResult(d);
  93. `,
  94. 一级: `js:
  95. var d = [];
  96. pdfh = jsp.pdfh;pdfa = jsp.pdfa;pd = jsp.pd;
  97. var html = request(input);
  98. let items = pdfa(html, "a.module-item");
  99. items.forEach(it => {
  100. d.push({
  101. url:pdfh(it,"a&&href"),
  102. title:pdfh(it,"a&&title"),
  103. img:pdfh(it,"div.module-item-pic&&img&&data-original"),
  104. desc:pdfh(it,"div.module-item-note&&Text")
  105. })
  106. });
  107. setResult(d)
  108. `,
  109. 二级: $js.toString(() => {
  110. VOD = {};
  111. let html = request(input);
  112. VOD.vod_name = pdfh(html, "h1&&Text");
  113. VOD.vod_pic = pd(html, ".module-item-pic&&img&&data-original");
  114. VOD.vod_year = pdfh(html, ".module-info-tag-link:eq(0)&&Text");
  115. VOD.vod_area = pdfh(html, ".module-info-tag-link:eq(1)&&Text");
  116. VOD.type_name = pdfh(html, ".module-info-tag-link:eq(2)&&Text");
  117. VOD.vod_actor = pdfh(html, ".module-info-item-content:eq(1)&&Text");
  118. VOD.vod_director = pdfh(html, ".module-info-item-content:eq(0)&&Text");
  119. VOD.vod_remarks = "不信广告就你赢了";
  120. VOD.vod_content = pdfh(html, ".module-info-introduction-content&&Text");
  121. if (typeof play_url === "undefined") {
  122. var play_url = ""
  123. }
  124. let playFrom = [];
  125. let playUrl = [];
  126. let tabs = pdfa(html, "div.module-tab-item");
  127. tabs.forEach((it, index) => {
  128. playFrom.push('諾临風-' + pdfh(it, 'span&&Text') + "[" + pdfh(it, 'small&&Text') + "]");
  129. let playTag = "div.module-play-list:eq(" + index + ") a";
  130. let tags = pdfa(html, playTag);
  131. let mapUrl = tags.map((tag) => {
  132. let title = pdfh(tag, "a&&Text").trim();
  133. let purl = pd(tag, "a&&href");
  134. return title + "$" + play_url + urlencode(purl);
  135. });
  136. playUrl.push(mapUrl.join("#"))
  137. });
  138. VOD.vod_play_from = playFrom.join("$$$");
  139. VOD.vod_play_url = playUrl.join("$$$");
  140. }),
  141. double: false,
  142. searchUrl: "/index.php/vod/search/wd/**.html",
  143. 搜索: `js:
  144. var d = [];
  145. pdfh = jsp.pdfh;pdfa = jsp.pdfa;pd = jsp.pd;
  146. var html = request(input);
  147. let list = pdfa(html, "div.module-item");
  148. list.forEach(it => {
  149. d.push({
  150. title: pdfh(it, "div.module-card-item-title&&Text"),
  151. desc: pdfh(it, "div.module-item-note&&Text"),
  152. pic_url: pdfh(it, "div.module-item-pic&&img&&data-original"),
  153. url: pdfh(it, "div.module-card-item-title&&a&&href")
  154. })
  155. });
  156. setResult(d)
  157. `
  158. };