金牌影院.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. var rule = {
  2. title: '金牌影院',
  3. host: 'https://www.cfkj86.com',
  4. url: '/vod/show/id/fyclass/page/fypage',
  5. searchUrl: '/api/mw-movie/anonymous/video/searchByWordPageable?keyword=**&pageNum=fypage&pageSize=12&type=false',
  6. headers: {
  7. 'User-Agent': 'PC_UA',
  8. 'Referer': 'https://www.cfkj86.com/'
  9. },
  10. searchable: 2,
  11. quickSearch: 0,
  12. filterable: 0,
  13. class_name: '电影&电视剧&综艺&动漫',
  14. class_url: '1&2&3&4',
  15. limit: 6,
  16. double: false,
  17. play_parse: true,
  18. lazy: $js.toString(() => {
  19. let url_id = input.split('/')[5];
  20. let jishu_id = input.split('/')[7];
  21. let t = new Date().getTime();
  22. eval(getCryptoJS);
  23. let signkey = 'id=' + url_id + '&nid=' + jishu_id + '&key=cb808529bae6b6be45ecfab29a4889bc&t=' + t;
  24. let key = CryptoJS.SHA1(CryptoJS.MD5(signkey).toString()).toString();
  25. let json_data = JSON.parse(request('https://www.cfkj86.com/api/mw-movie/anonymous/video/episode/url?id=' + url_id + '&nid=' + jishu_id, {
  26. headers: {
  27. 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36',
  28. 'deviceid': '58a80c52-138c-48fd-8edb-138fd74d12c8',
  29. 'sign': key,
  30. 't': t
  31. }
  32. }));
  33. let url = json_data.data;
  34. log(url);
  35. if (url) {
  36. input = {parse: 0, url: url, header: rule.headers};
  37. }
  38. }),
  39. 图片替换: $js.toString(() => {
  40. // log(MY_URL);
  41. let src = decodeURIComponent(input).split(',')[0].split(' ')[0];
  42. input = urljoin(MY_URL, src) + '@Referer=https://www.cfkj86.com/';
  43. }),
  44. // double: false,
  45. // 推荐: '*',
  46. 一级: '.movie-ul&&.kIDbTD;.title&&Text;.card-img&&img&&srcset;.info-tag&&Text;.kIDbTD a&&href',
  47. 二级: {
  48. title: 'h1&&Text',
  49. img: 'img&&src',
  50. tabs: '.top a',
  51. lists: '.kmkeNw:eq(#id)&&a',
  52. },
  53. 搜索: '*',
  54. }