葡萄影视.js 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. var rule = {
  2. title: '葡萄影视',
  3. host: 'https://www.putaoys.com/',
  4. class_name: '电影&电视剧',
  5. class_url: 'dianying&dianshiju',
  6. searchUrl: '/search/**----------fypage---.html',
  7. searchable: 2,
  8. quickSearch: 0,
  9. headers: {
  10. 'User-Agent': 'MOBILE_UA',
  11. },
  12. url: '/vod/list/fyclass--------fypage---.html',
  13. filterable: 0,
  14. filter_url: '',
  15. filter: {},
  16. filter_def: {},
  17. detailUrl: '/index.php/vod/detail/id/fyid.html',
  18. play_parse: true,
  19. lazy: "js:\n let html = request(input);\n let hconf = html.match(/r player_.*?=(.*?)</)[1];\n let json = JSON5.parse(hconf);\n let url = json.url;\n if (json.encrypt == '1') {\n url = unescape(url);\n } else if (json.encrypt == '2') {\n url = unescape(base64Decode(url));\n }\n if (/\\.(m3u8|mp4|m4a|mp3)/.test(url)) {\n input = {\n parse: 0,\n jx: 0,\n url: url,\n };\n } else {\n input = url && url.startsWith('http') && tellIsJx(url) ? {parse:0,jx:1,url:url}:input;\n }",
  20. limit: 6,
  21. 推荐: '.img-list.picList li;a&&title;img&&src;.text&&Text;a&&href',
  22. 一级: '.grid-mode.show-list li;h5&&a&&Text;.lazy&&data-original;.mod_version&&Text;a&&href',
  23. 二级: {
  24. title: 'h1&&Text;.detail-title&&span&&Text',
  25. img: 'img&&src',
  26. desc: '.info fn-clear&&Text;.info-performer:eq(2)&&Text;.info fn-clear:eq(3)&&Text',
  27. content: '.juqing&&Text',
  28. tabs: '.m3u8yun',
  29. tab_text: 'span&&Text',
  30. lists: '.play-list:eq(#id) a',
  31. },
  32. 搜索: '*',
  33. }