顶好剧场.js 1.5 KB

12345678910111213141516171819202122232425262728
  1. var rule = {
  2. title: '顶好剧场',
  3. host: 'https://dinghjc.com',
  4. url: '/show/fyclass--------fypage---.html',
  5. searchUrl: '/vod/search.html?wd=**',
  6. class_parse: '.top_nav li;a&&Text;a&&href;.*/(.*?).html',
  7. searchable: 2,
  8. quickSearch: 0,
  9. filterable: 0,
  10. headers: {
  11. 'User-Agent': 'MOBILE_UA',
  12. },
  13. play_parse: true,
  14. 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 }",
  15. limit: 6,
  16. double: true,
  17. 推荐: '.cbox_list;*;*;*;*;*',
  18. 一级: 'ul.vodlist li;a&&title;.vodlist_thumb&&style;.pic_text&&Text;a&&href',
  19. 二级: {
  20. title: 'h2&&Text;.content_detail:eq(1)&&li&&a:eq(2)&&Text',
  21. img: '.vodlist_thumb&&style',
  22. desc: '.content_detail:eq(1)&&li:eq(1)&&Text;.content_detail:eq(1)&&li&&a&&Text;.content_detail:eq(1)&&li&&a:eq(1)&&Text;.content_detail:eq(1)&&li:eq(2)&&Text;.content_detail:eq(1)&&li:eq(3)&&Text',
  23. content: '.content_desc&&span&&Text',
  24. tabs: '.play_source_tab&&a',
  25. lists: '.content_playlist:eq(#id) li',
  26. },
  27. 搜索: '.vodlist.clearfix li;a&&title;.vodlist_thumb&&style;.pic_text&&Text;a&&href',
  28. }