乐猪TV.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. var rule = {
  2. title:'乐猪TV',
  3. host:'http://www.lezhutv.com',
  4. // homeUrl:'/',
  5. url:'/list/fyclassfyfilter.html',
  6. filterable:1,//是否启用分类筛选,
  7. filter_url:'{{fl.cateId}}_fypage_desc_{{fl.by}}_0_0___',
  8. "filter":{
  9. "1":[
  10. {
  11. "key":"cateId",
  12. "name":"类型",
  13. "value":[
  14. {"n":"全部","v":"1"},
  15. {"n":"动作片","v":"5"},
  16. {"n":"喜剧片","v":"6"},
  17. {"n":"爱情片","v":"7"},
  18. {"n":"科幻片","v":"8"},
  19. {"n":"恐怖片","v":"9"},
  20. {"n":"剧情片","v":"10"},
  21. {"n":"战争片","v":"11"},
  22. {"n":"奇幻片","v":"16"},
  23. {"n":"惊悚片","v":"17"},
  24. {"n":"动画片","v":"18"},
  25. {"n":"悬疑片","v":"19"},
  26. {"n":"犯罪片","v":"20"},
  27. {"n":"记录片","v":"21"},
  28. {"n":"音乐片","v":"22"}
  29. ]
  30. },
  31. {
  32. "key":"by",
  33. "name":"排序",
  34. "value":[
  35. {"n":"时间","v":"time"},
  36. {"n":"人气","v":"hits"},
  37. {"n":"评分","v":"score"}
  38. ]
  39. }
  40. ],
  41. "2":[
  42. {
  43. "key":"cateId",
  44. "name":"类型",
  45. "value":[
  46. {"n":"全部","v":"2"},
  47. {"n":"大陆","v":"12"},
  48. {"n":"港剧","v":"13"},
  49. {"n":"韩剧","v":"14"},
  50. {"n":"美剧","v":"15"},
  51. {"n":"日剧","v":"24"},
  52. {"n":"台剧","v":"25"},
  53. {"n":"泰剧","v":"26"}
  54. ]
  55. },
  56. {
  57. "key":"by",
  58. "name":"排序",
  59. "value":[
  60. {"n":"时间","v":"time"},
  61. {"n":"人气","v":"hits"},
  62. {"n":"评分","v":"score"}
  63. ]
  64. }
  65. ],
  66. "3":[
  67. {
  68. "key":"cateId",
  69. "name":"类型",
  70. "value":[
  71. {"n":"全部","v":"3"},
  72. {"n":"大陆综艺","v":"28"},
  73. {"n":"港台综艺","v":"29"},
  74. {"n":"日韩综艺","v":"30"},
  75. {"n":"欧美综艺","v":"31"}
  76. ]
  77. },
  78. {
  79. "key":"by",
  80. "name":"排序",
  81. "value":[
  82. {"n":"时间","v":"time"},
  83. {"n":"人气","v":"hits"},
  84. {"n":"评分","v":"score"}
  85. ]
  86. }
  87. ],
  88. "4":[
  89. {
  90. "key":"cateId",
  91. "name":"类型",
  92. "value":[
  93. {"n":"全部","v":"4"},
  94. {"n":"国产动漫","v":"32"},
  95. {"n":"日本动漫","v":"33"},
  96. {"n":"其他动漫","v":"35"}
  97. ]
  98. },
  99. {
  100. "key":"by",
  101. "name":"排序",
  102. "value":[
  103. {"n":"时间","v":"time"},
  104. {"n":"人气","v":"hits"},
  105. {"n":"评分","v":"score"}
  106. ]
  107. }
  108. ]
  109. },
  110. // searchUrl:'/search-pg-fypage-wd-**.html',
  111. searchUrl:'/index.php?m=vod-search#wd=**&search=;post',
  112. searchable:2,
  113. quickSearch:0,
  114. headers:{
  115. // 'User-Agent':'UC_UA'
  116. 'User-Agent':'MOBILE_UA',
  117. // 'Cookie':'test',
  118. },
  119. timeout:5000,
  120. // class_parse:'div.nav a;a&&Text;a&&href;/(\\d.+).html',
  121. class_parse:'div.nav a;a&&Text;a&&href;/(\\d+)-1.html',
  122. play_parse:true,
  123. lazy:'',
  124. limit:5,
  125. 推荐:'.tbox2;*;*;*;*;*',
  126. double:true, // 推荐内容是否双层定位
  127. 一级:'ul.tbox_m2 li;a&&title;a&&data-original;span&&Text;a&&href',
  128. 二级:{"title":".data h4--i&&Text;.yac&&Text","img":".item-lazy&&data-original","desc":";;;.act&&Text;.dir&&Text","content":".tbox_js&&Text","tabs":"js:pdfa=jsp.pdfa;TABS=pdfa(html,'.tbox_t h3').map(function(it,idex){return '线路'+(idex+1)})","lists":"ul.list_block:eq(#id) li","tabs":".tbox_t h3"},
  129. 搜索:'ul.tbox_m li;*;*;*;*',
  130. }