4K-AV.js 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. var rule = {
  2. author: '小可乐/240701/第二版',
  3. title: '4KAV',
  4. 类型: '影视',
  5. host: 'https://4k-av.com',
  6. hostJs: '',
  7. headers: {'User-Agent': 'IOS_UA'},
  8. 编码: 'utf-8',
  9. timeout: 5000,
  10. homeUrl: '/',
  11. url: '/fyclassfyfilter/page-fypage.html[/fyclassfyfilter]',
  12. filter_url: '{{fl.class}}',
  13. detailUrl: '',
  14. searchUrl: '/s?q=**',
  15. searchable: 1,
  16. quickSearch: 1,
  17. filterable: 1,
  18. class_name: '电影&剧集',
  19. class_url: 'movie&tv',
  20. filter_def: {},
  21. play_parse: true,
  22. lazy: `js:
  23. if (/m3u8|mp4/.test(input)) {
  24. input = { jx: 0, parse: 0, url: input }
  25. } else {
  26. let kurl = request(input).match(/<source src="(.*?)"/)[1];
  27. input = { jx: 0, parse: 0, url: kurl }
  28. }
  29. `,
  30. limit: 9,
  31. double: false,
  32. 推荐: '*',
  33. 一级: '.NTMitem;a&&title;img&&src;.tags&&Text;a&&href',
  34. 二级: `js:
  35. let khtml = request(input);
  36. VOD = {};
  37. VOD.vod_id = input;
  38. VOD.vod_name = pdfh(khtml, '#MainContent_titleh12&&div:eq(1)&&Text');
  39. VOD.type_name = pdfh(khtml, '.tags--span&&Text');
  40. VOD.vod_pic = pdfh(khtml, '#MainContent_poster&&img&&src');
  41. VOD.vod_remarks = pdfh(khtml, '.videodetail&&label:eq(0)&&Text');
  42. VOD.vod_year = pdfh(khtml, '.videodetail&&a&&Text');
  43. VOD.vod_area = pdfh(khtml, '.videodetail&&label:eq(1)&&Text');
  44. VOD.vod_director = '未知';
  45. VOD.vod_actor = '未知';
  46. VOD.vod_content = pdfh(khtml, '.videodesc&&Text');
  47. VOD.vod_play_from = '4KAV专线';
  48. let klists = [];
  49. let kcode = pdfa(khtml, 'ul#rtlist&&li');
  50. if ( kcode == 0) {
  51. kcode = pdfa(khtml, '#MainContent_poster&&a');
  52. kcode.forEach((kc) => {
  53. let kname = pdfh(kc, 'a&&title').replace('电影海报','');
  54. let khref = pdfh(kc, 'a&&href').replace('poster.jpg','');
  55. let klist = kname + '$' + khref;
  56. klists.push(klist);
  57. });
  58. VOD.vod_play_url = klists.join('#');
  59. } else {
  60. kcode;
  61. kcode.forEach((kc) => {
  62. let kname = pdfh(kc, 'span&&Text');
  63. let khref = pdfh(kc, 'img&&src').replace('screenshot.jpg','');
  64. let klist = kname + '$' + khref;
  65. klists.push(klist);
  66. });
  67. VOD.vod_play_url = klists.join('#');
  68. }
  69. `,
  70. 搜索: '*',
  71. filter: {
  72. "tv":[
  73. {"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"动作","v":"/tag/动作"},{"n":"剧情","v":"/tag/剧情"},{"n":"冒险","v":"/tag/冒险"},{"n":"喜剧","v":"/tag/喜剧"},{"n":"国产剧","v":"/tag/国产剧"},{"n":"恐怖","v":"/tag/恐怖"},{"n":"战争","v":"/tag/战争"},{"n":"科幻","v":"/tag/科幻"},{"n":"动画","v":"/tag/动画"},{"n":"韩剧","v":"/tag/韩剧"},{"n":"犯罪","v":"/tag/犯罪"},{"n":"纪录片","v":"/tag/纪录片"}]},
  74. {"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"2024","v":"/2024"},{"n":"2023","v":"/2023"},{"n":"2022","v":"/2022"},{"n":"2021","v":"/2021"},{"n":"2020","v":"/2020"},{"n":"2019","v":"/2019"}]}
  75. ]
  76. }
  77. }