牌牌影院.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. var rule = {
  2. 模板: '短视2',
  3. title: '牌牌影院',
  4. host: "https://paipaiyy.com",
  5. class_name: "电影&电视剧&综艺&动漫&短剧",
  6. class_url: "1&2&3&4&5",
  7. searchUrl: '/vodsearch/**----------fypage---.html',
  8. searchable: 2,
  9. quickSearch: 0,
  10. headers: {
  11. 'User-Agent': 'ISO_UA',
  12. },
  13. url: '/index.php/api/vod#type=fyclassfyfilter&page=fypage',
  14. detailUrl: '/voddetail/fyid.html',
  15. play_parse: true,
  16. limit: 6,
  17. 推荐: 'body&&.public-list-box;a&&title;.lazy&&data-original;.public-list-prb&&Text;a&&href',
  18. 二级: {
  19. title: '.slide-info-title&&Text;.slide-info:eq(3)--strong&&Text',
  20. img: '.detail-pic&&data-original',
  21. desc: '.fraction&&Text;.slide-info-remarks:eq(1)&&Text;.slide-info-remarks:eq(2)&&Text;.slide-info:eq(2)--strong&&Text;.slide-info:eq(1)--strong&&Text',
  22. content: '#height_limit&&Text',
  23. tabs: '.anthology.wow.fadeInUp.animated&&.swiper-wrapper&&a',
  24. tab_text: '.swiper-slide--i--span&&Text',
  25. lists: '.anthology-list-box:eq(#id) li',
  26. },
  27. 搜索: '.search-box;.thumb-txt&&Text;.lazy&&data-original;.public-list-prb&&Text;a&&href;.thumb-blurb&&Text',
  28. lazy: $js.toString(() => {
  29. let html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
  30. let url = html.url;
  31. if (html.encrypt == '1') {
  32. url = unescape(url)
  33. } else if (html.encrypt == '2') {
  34. url = unescape(base64Decode(url))
  35. }
  36. if (/\.m3u8/.test(url)) {
  37. let body = request(url);
  38. let lines = body.split('\n');
  39. let m3u8Url = null;
  40. for (let line of lines) {
  41. line = line.trim();
  42. if (line.endsWith('.m3u8')) {
  43. m3u8Url = urljoin(url,line);
  44. console.log(m3u8Url);
  45. break;
  46. }
  47. }
  48. input = {
  49. jx: 0,
  50. url: m3u8Url || url,
  51. parse: 0
  52. };
  53. } else {
  54. input = {
  55. jx: tellIsJx(url),
  56. url: url,
  57. parse: 0
  58. };
  59. }
  60. }),
  61. }