dygang.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. var rule = {
  2. title:'电影港[磁]',
  3. host:'https://www.dygang.tv',
  4. homeUrl:'/',
  5. url: '/fyclass/index_fypage.htm?',
  6. filter_url:'{{fl.class}}',
  7. filter:{
  8. },
  9. searchUrl: '/e/search/index.php#tbname=article&show=title,smalltext&tempid=1&Submit=%CB%D1%CB%F7&keyboard=**;post',
  10. searchable:2,
  11. quickSearch:1,
  12. filterable:0,
  13. headers:{
  14. 'User-Agent': 'PC_UA'
  15. },
  16. timeout:5000,
  17. class_name:'最新电影&经典高清&国配电影&经典港片&国剧&日韩剧&美剧&综艺&动漫&纪录片&高清原盘&4K高清区&3D电影&电影专题',
  18. class_url:'ys&bd&gy&gp&dsj&dsj1&yx&zy&dmq&jilupian&1080p&4K&3d&dyzt',
  19. play_parse:false,
  20. lazy:'',
  21. limit:6,
  22. 推荐:'div#tl table.border1;img&&alt;img&&src;;a&&href',
  23. 一级:'table.border1;img&&alt;img&&src;;a&&href',
  24. 二级:{
  25. title:"div.title a&&Text",
  26. img:"#dede_content img&&src",
  27. desc:"#dede_content p:eq(3)&&Text",
  28. content:"#dede_content p:eq(2)&&Text",
  29. tabs:`js:
  30. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  31. TABS=[]
  32. var d = pdfa(html, '#dede_content&&a');
  33. var index=0;
  34. d.forEach(function(it) {
  35. let burl = pdfh(it, 'a&&href');
  36. log("burl >>>>>>" + burl);
  37. if (burl.startsWith("magnet")){
  38. let result = 'magnet' + index;
  39. index = index + 1;
  40. TABS.push(result);
  41. }
  42. });
  43. log('TABS >>>>>>>>>>>>>>>>>>' + TABS);
  44. `,
  45. lists:`js:
  46. log(TABS);
  47. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  48. LISTS = [];
  49. var d = pdfa(html, '#dede_content&&a');
  50. TABS.forEach(function(tab) {
  51. log('tab >>>>>>>>' + tab);
  52. if (/^magnet/.test(tab)) {
  53. let targetindex = parseInt(tab.substring(6));
  54. let index = 0;
  55. d.forEach(function(it){
  56. let burl = pdfh(it, 'a&&href');
  57. if (burl.startsWith("magnet")){
  58. if (index == targetindex){
  59. let title = pdfh(it, 'a&&Text');
  60. log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
  61. log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
  62. let loopresult = title + '$' + burl;
  63. LISTS.push([loopresult]);
  64. }
  65. index = index + 1;
  66. }
  67. });
  68. }
  69. });
  70. `,
  71. },
  72. 搜索:'table.border1;img&&alt;img&&src;img&&alt;a&&href;img&&alt',
  73. }