TV云播 .json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. //写法思路来海阔视界,xpath筛选。
  2. //本文档为完整模板,实际情况可按规则写法删去不需要的。
  3. {
  4. //规则名
  5. "title": "TV云播H",
  6. //作者
  7. "author": "各位大佬辅助完成",
  8. //请求头UA,键名$键值,每一组用#分开,不填则默认okhttp/3.12.11,可填MOBILE_UA或PC_UA使用内置的手机版或电脑版UA
  9. //习惯查看手机源码写建议用手机版UA,习惯查看PC版源码写建议用电脑版UA
  10. "Headers":"MOBILE_UA",
  11. //图片需要代理
  12. "PicNeedProxy":"0",
  13. //是否开启获取首页数据,0关闭,1开启
  14. "homeContent":"1",
  15. //分类链接起始页码,禁止负数和含小数点。
  16. "firstpage": "1",
  17. //分类链接,{cateId}是分类,{catePg}是页码,第一页没有页码的可以这样写 第二页链接[firstPage=第一页的链接]
  18. "class_url": "http://www.tvyb03.com/vod/show/{class}{area}{by}/id/{cateId}/page/{catePg}{year}.html",
  19. //分类名,分类1&分类2&分类3
  20. "class_name": "电影&电视剧&综艺&动漫",
  21. //分类名替换词,替换词1&替换词2&替换词3,替换词包含英文&的用两个中文&&代替,示例:&&id=0&&&id=1
  22. "class_value": "1&2&3&4",
  23. //筛选数据,json格式,参考官方仓库的筛选写法
  24. "filterdata":{"1":[
  25. { "key":"area", "name":"地区", "value":[
  26. { "n":"全部", "v":"" },
  27. {"n":"中国大陆", "v":"/area/中国大陆" },
  28. {"n":"中国香港", "v":"/area/中国香港" }, { "n":"中国台湾", "v":"/area/中国台湾" }, { "n":"美国", "v":"/area/美国" },
  29. { "n":"日本", "v":"/area/日本"},
  30. { "n":"韩国", "v":"/area/韩国" },
  31. {"n":"英国", "v":"/area/英国" },
  32. {"n":"法国", "v":"/area/法国" }
  33. ] },
  34. { "key":"class", "name":"分类", "value":[
  35. { "n":"全部", "v":"" },
  36. { "n":"喜剧", "v":"/class/喜剧" },
  37. { "n":"爱情", "v":"/class/爱情" },
  38. { "n":"恐怖", "v":"/class/恐怖" },
  39. { "n":"动作", "v":"/class/动作" },
  40. { "n":"科幻", "v":"/class/科幻" },
  41. { "n":"剧情", "v":"/class/剧情" },
  42. { "n":"警匪", "v":"/class/警匪" },
  43. { "n":"犯罪","v":"/class/犯罪"}
  44. ] },
  45. { "key":"year", "name":"年份", "value":[
  46. { "n":"全部", "v":"" },
  47. {"n":"2022", "v":"/year/2022" },
  48. { "n":"2021", "v":"/year/2021" },
  49. { "n":"2020", "v":"/year/2020" },
  50. { "n":"2019", "v":"/year/2019" },
  51. { "n":"2018", "v":"/year/2018" },
  52. { "n":"2017", "v":"/year/2017" },
  53. { "n":"2016", "v":"/year/2016" },
  54. { "n":"2015", "v":"/year/2015" },
  55. {"n":"2014", "v":"/year/2014" },
  56. {"n":"2013", "v":"/year/2013" }
  57. ] },
  58. {"key":"by", "name":"排序", "value":[
  59. {"n":"时间","v":"/by/time" },
  60. {"n":"人气", "v":"/by/hits" },
  61. {"n":"评分","v":"/by/score" } ]
  62. } ],
  63. "2":[
  64. { "key":"area", "name":"地区", "value":[
  65. { "n":"全部", "v":"" },
  66. {"n":"中国大陆", "v":"/area/中国大陆" },
  67. {"n":"中国香港", "v":"/area/中国香港" }, { "n":"中国台湾", "v":"/area/中国台湾" }, { "n":"美国", "v":"/area/美国" },
  68. { "n":"日本", "v":"/area/日本"},
  69. { "n":"韩国", "v":"/area/韩国" },
  70. {"n":"英国", "v":"/area/英国" },
  71. {"n":"法国", "v":"/area/法国" }
  72. ] },
  73. { "key":"class","name":"分类", "value":[
  74. { "n":"全部", "v":"" },
  75. { "n":"古装", "v":"/class/古装" },
  76. { "n":"言情", "v":"/class/言情" },
  77. { "n":"武侠", "v":"/class/武侠" },
  78. { "n":"偶像", "v":"/class/偶像" },
  79. {"n":"家庭", "v":"/class/家庭" },
  80. { "n":"喜剧", "v":"/class/喜剧" },
  81. { "n":"悬疑","v":"/class/悬疑" },
  82. { "n":"罪案", "v":"/class/罪案" },
  83. { "n":"穿越","v":"/class/穿越" },
  84. { "n":"宫廷", "v":"/class/宫廷" },
  85. {"n":"年代", "v":"/class/年代" },
  86. { "n":"农村","v":"/class/农村"},
  87. {"n":"剧情", "v":"/class/剧情" },
  88. { "n":"奇幻", "v":"/class/奇幻" },
  89. {"n":"网剧", "v":"/class/网剧" },
  90. {"n":"都市", "v":"/class/都市" }
  91. ] },
  92. { "key":"year", "name":"年份", "value":[
  93. { "n":"全部", "v":"" },
  94. {"n":"2022", "v":"/year/2022" },
  95. { "n":"2021", "v":"/year/2021" },
  96. { "n":"2020", "v":"/year/2020" },
  97. { "n":"2019", "v":"/year/2019" },
  98. { "n":"2018", "v":"/year/2018" },
  99. { "n":"2017", "v":"/year/2017" },
  100. { "n":"2016", "v":"/year/2016" },
  101. { "n":"2015", "v":"/year/2015" },
  102. {"n":"2014", "v":"/year/2014" },
  103. {"n":"2013", "v":"/year/2013" }
  104. ] },
  105. {"key":"by", "name":"排序", "value":[
  106. {"n":"时间","v":"/by/time" },
  107. {"n":"人气", "v":"/by/hits" },
  108. {"n":"评分","v":"/by/score" } ]
  109. } ],
  110. "4":[
  111. { "key":"area", "name":"地区", "value":[
  112. { "n":"全部", "v":"" },
  113. {"n":"中国大陆", "v":"/area/中国大陆" },
  114. {"n":"中国香港", "v":"/area/中国香港" }, { "n":"中国台湾", "v":"/area/中国台湾" }, { "n":"美国", "v":"/area/美国" },
  115. { "n":"日本", "v":"/area/日本"},
  116. { "n":"韩国", "v":"/area/韩国" },
  117. {"n":"英国", "v":"/area/英国" },
  118. {"n":"法国", "v":"/area/法国" }
  119. ] },
  120. { "key":"year", "name":"年份", "value":[
  121. { "n":"全部", "v":"" },
  122. {"n":"2022", "v":"/year/2022" },
  123. { "n":"2021", "v":"/year/2021" },
  124. { "n":"2020", "v":"/year/2020" },
  125. { "n":"2019", "v":"/year/2019" },
  126. { "n":"2018", "v":"/year/2018" },
  127. { "n":"2017", "v":"/year/2017" },
  128. { "n":"2016", "v":"/year/2016" },
  129. { "n":"2015", "v":"/year/2015" },
  130. {"n":"2014", "v":"/year/2014" },
  131. {"n":"2013", "v":"/year/2013" }
  132. ] },
  133. {"key":"by", "name":"排序", "value":[
  134. {"n":"时间","v":"/by/time" },
  135. {"n":"人气", "v":"/by/hits" },
  136. {"n":"评分","v":"/by/score" } ]
  137. } ]},
  138. //页面截取数据模式,0为json,1为普通网页。
  139. "cat_mode": "1",
  140. //分类列表数组定位,最多支持3层,能力有限,不是所有页面都能支持
  141. "cat_arr_rule": ".myui-vodlist&&li",
  142. //分类片单标题
  143. "cat_title": "h4&&a&&Text",
  144. //分类片单链接
  145. "cat_url": "h4&&a&&href",
  146. //分类片单图片
  147. "cat_pic": ".lazyload&&data-original",
  148. //分类片单副标题
  149. "cat_subtitle":".tag&&Text",
  150. //分类片单链接补前缀
  151. "cat_prefix": "http://www.tvyb03.com",
  152. //分类片单链接补后缀
  153. "cat_suffix": "",
  154. //搜索专属请求头UA
  155. "SHeaders":"MOBILE_UA",
  156. //搜索链接,搜索关键字用{wd}表示,post请求的最后面加;post
  157. //POST链接示例 http://www.lezhutv.com/index.php?m=vod-search;post
  158. "search_url": "http://www.tvyb03.com/index.php/ajax/suggest?mid=1&wd={wd}&limit=30",
  159. //POST搜索body,填写搜索关键字的键值,一般常见的是searchword和wd,不是POST搜索的可留空或删除。
  160. "sea_PtBody":"",
  161. //搜索模式,0为json搜索,只支持列表在list数组里的,其它为网页截取。
  162. "search_mode": "0",
  163. //搜索json列表数组定位,不填默认内置list,最多支持3层,能力有限,不是所有页面都能支持。
  164. "sea_arr_rule": "list",
  165. //搜索json片单图片
  166. "sea_pic": "pic",
  167. //搜索json片单标题
  168. "sea_title": "name",
  169. //搜索json片单链接
  170. "sea_url": "id",
  171. //json片单副标题,这个很少有,预留着
  172. "sea_subtitle":"",
  173. //搜索片单链接补前缀
  174. "search_prefix": "http://www.tvyb03.com/vod/detail/id/",
  175. //搜索片单链接补后缀,这个一般json搜索的需要
  176. "search_suffix": ".html",
  177. //片单链接是否直接播放,0否,1分类片单链接直接播放,2详情选集链接直接播放。
  178. //设置成直接播放后,后面3个参数请注意该留空的请务必留空。
  179. "force_play": "0",
  180. //直接播放链接补前缀
  181. "play_prefix": "https://live.52sf.ga/huya/",
  182. //直接播放链接补后缀,设置为#isVideo=true#可强制识别为视频链接
  183. "play_suffix": "#isVideo=true#",
  184. //直接播放链接设置请求头,只对直链视频有效,每一组用#分开
  185. "play_header": "authority$ku.peizq.online#Referer$https://play.peizq.online",
  186. //演员数据,截取前缀&&截取后缀
  187. "proj_actor": ".data,2&&Text!主演",
  188. //简介内容,截取前缀&&截取后缀
  189. "proj_plot": ".text-collapse&&Text",
  190. //线路截取区域,如果不需要请把tab_title或tab_arr_pre置空或者全部不要填。
  191. //线路截取数组前
  192. "tab_arr_rule": "body&&.myui-panel-box:has(.myui-content__list)",
  193. //线路标题,截取前缀&&截取后缀
  194. "tab_title": "h3&&Text",
  195. //列表数组截取前,必须
  196. "list_arr_rule": "body&&.myui-content__list",
  197. //集数数组截取前,必须
  198. "epi_arr_rule": "a",
  199. //集数标题,截取前缀&&截取后缀
  200. "epi_title": "a&&Text",
  201. //集数链接,截取前缀&&截取后缀
  202. "epi_url": "a&&href",
  203. //选集列表是否反转显示
  204. "epi_reverse": "0",
  205. //集数链接补前缀
  206. "epiurl_prefix": "http://www.tvyb03.com",
  207. //集数链接补后缀
  208. "epiurl_suffix": "",
  209. //下面几个参数请勿乱用。否则可能会有副作用。
  210. //分析网页源码中有<script type="text/javascript">var player_aaaa={"flag":"play","encrypt这种源码的链接解析
  211. //如果网页源码里没有这种请设置为0
  212. "Anal_MacPlayer":"0",
  213. //是否开启手动嗅探,只对网页嗅探有效,0否,1是
  214. "ManualSniffer":"0",
  215. //手动嗅探视频链接关键字,每个用#隔开
  216. "VideoFormat":".mp4#.m3u8#.flv",
  217. //手动嗅探视频链接过滤关键词,每个用#隔开
  218. "VideoFilter":".html#=http"
  219. }