ddzj.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. rule = {
  2. host: 'https://www.ddkk.tv',
  3. class_name: '电影&电视剧&动漫&综艺&短剧',
  4. class_url: '1&2&3&4&21',
  5. homeVod: 'a.myui-vodlist__thumb;&&title;&&href;&&data-original;span.text-right&&Text',
  6. url: '/channel/fyclass-fypage.html',
  7. categoryVod: 'a.myui-vodlist__thumb;&&title;&&href;&&data-original;span.text-right&&Text',
  8. detailVod: {
  9. content: '.desc&&Text',
  10. director: 'p.data:has(span:contains(导演)) a&&Text',
  11. actor: 'p.data:has(span:contains(演员)) a&&Text',
  12. playFrom: '.nav.nav-tabs li a&&Text',
  13. playUrl: '.tab-content div.tab-pane;li a;&&title;&&href',
  14. },
  15. lazy: `
  16. request(HOST + input);|||
  17. const json = getPlay4aJson(html);
  18. let enUrl = unescape(base64Decode(JSON.parse(json).url));
  19. request('https://jx.tudo.fun/index.php?url=' + enUrl,'',{});|||
  20. const url = html.split('"url": "')[1].split('",')[0];
  21. const $ = load(html);
  22. const textStr = $('meta[name="viewport"]').attr('id').replace('now_', '');
  23. const idStr = $('meta[charset="UTF-8"]').attr('id').replace('now_', '');
  24. let keyList = [];
  25. let sortedList = [];
  26. let keyStr = '';
  27. for (let index = 0; index < idStr.length; index++) {
  28. keyList.push({
  29. 'id': idStr[index],
  30. 'text': textStr[index]
  31. });
  32. }
  33. sortedList = keyList.sort((a, b)=> a.id - b.id);
  34. for (const item of sortedList) {
  35. keyStr += item.text;
  36. }
  37. const md5Key =md5(keyStr + '343985268');
  38. playUrl = aesDecode(url, md5Key.substring(16), md5Key.substring(0, 16));
  39. `
  40. }