config.txt 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. {
  2. {% if config.WALL_PAPER_ENABLE %}"wallpaper":"{{ host }}/pics",{% endif %}
  3. "dr_count": {{rules.list|length}},
  4. "mode": {{ mode }},
  5. "spider": "{{ host }}/liveslib",
  6. {% if alists|length > 0 %}"drives": {{alists_str}},{% endif %}
  7. "homepage":"https://github.com/hjdhnx/dr_py",
  8. "sites": [{% for rule in rules.list %}{% if js_mode != 1 %}
  9. {
  10. "key":"dr_{{ rule.name }}",
  11. "name":"{{ rule.name }}(道长)",
  12. "type":1,
  13. "api":"{{ host }}/vod?{% if js0_password %}pwd={{js0_password}}&{% endif %}rule={{ rule.name }}",
  14. "searchable": {{ rule.searchable }},
  15. "quickSearch": {{ rule.quickSearch }},
  16. "filterable": {{ rule.filterable }}
  17. }{% else %}
  18. {
  19. "key":"dr_{{ rule.name }}",
  20. "name":"{{ rule.name }}(drpy)",
  21. "type":3,
  22. "api":{% if ISTVB and xr_mode %}"{{ host }}/libs/drpy2.min.js"{% else %}"{{ host }}/libs/drpy.min.js"{% endif %},
  23. #"api":{% if ISTVB and xr_mode %}"{{ host }}/libs/drpy.min.js"{% else %}"{{ host }}/libs/drpy.min.js"{% endif %},
  24. #"api":"{{ host }}/libs/drpy.js",
  25. "searchable": {{ rule.searchable }},
  26. "quickSearch": {{ rule.quickSearch }},
  27. "filterable": {{ rule.filterable }},
  28. "ext":"{{ host }}/js/{{ rule.name }}.js"
  29. }{% endif %}{% if loop.last==False %},{% endif %}{% endfor %}
  30. {% if pys %}
  31. ,{% for py in pys %}{
  32. "key":"{{ py.name }}",
  33. "name":"{{ py.name }}(Pyramid)",
  34. "type": 3,
  35. "api":"{{ py.name }}",
  36. "searchable": {{ py.searchable }},
  37. "quickSearch": {{ py.quickSearch }},
  38. "filterable": {{ py.filterable }},
  39. "ext": "{{ host }}/txt/py/{{ py.name }}.py"
  40. }{% if loop.last==False %},{% endif %}{% endfor %}
  41. {% endif %}
  42. ],
  43. "parses": [{
  44. "name": "🌐Ⓤ",
  45. "type": 0,
  46. "url": "",
  47. "header": {
  48. "User-Agent": "Mozilla/5.0"
  49. }
  50. },
  51. {
  52. "name": "轮询",
  53. "type": 2,
  54. "url": "Sequence",
  55. "header": {
  56. "User-Agent": "Mozilla/5.0"
  57. }
  58. },
  59. {
  60. "name": "并发",
  61. "type": 2,
  62. "url": "Parallel",
  63. "header": {
  64. "User-Agent": "Mozilla/5.0"
  65. }
  66. },
  67. {% for jx in jxs %}
  68. {
  69. "name": "{{ jx.name }}",
  70. "url": "{{ jx.url }}",
  71. "type": {{ jx.type }},
  72. "ext": {
  73. "flag": {{jx.flag or ["qiyi","imgo","爱奇艺", "奇艺", "qq","qq 预告及花絮", "腾讯", "youku", "优酷", "pptv", "PPTV", "letv", "乐视","leshi", "mgtv", "芒果","sohu", "xigua","fun","风行"]}}
  74. },
  75. "header": {
  76. "User-Agent": "{{ jx.ua }}"
  77. }
  78. }{% if loop.last==False %},{% endif %}{% endfor %}
  79. ],
  80. "flags": ["imgo","youku", "qq","qq 预告及花絮", "iqiyi", "qiyi","fun", "letv","leshi","sohu", "tudou","xigua","cntv","1905", "pptv", "mgtv", "wasu", "bilibili", "renrenmi"],
  81. "hotSearch": [{
  82. "name": "mobilesearch",
  83. "request": {
  84. "method": "GET",
  85. "header": [
  86. {
  87. "key": "Referer",
  88. "value": "{{ host }}"
  89. }
  90. ],
  91. "url": {
  92. "raw": "{{ host }}/hotsugg?t={time}"
  93. }
  94. },
  95. "response": {
  96. "result": "$.data",
  97. "data": [
  98. {
  99. "key": "keyword",
  100. "value": "title"
  101. }
  102. ]
  103. }
  104. }],
  105. "lives":[{"group":"redirect","channels":[{"name":"直播","urls":["proxy://do=live&type=txt&ext={{live_url}}"]}]}],
  106. "sniffer": {
  107. "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.27",
  108. "isVideoFormat": "http((?!http).){26,}\\.(m3u8|mp4|flv|avi|mkv|wmv|mpg|mpeg|mov|ts|3gp|rm|rmvb|asf|m4a|mp3|wma)",
  109. "custom": [
  110. {"url":"/Cloud/Down/AliCloud/", "mimeType":"text/html", "encoding":"utf-8", "header":{"Referer": "https://zxzj.vip/"}},
  111. {"url":"ysting.ysxs8.vip", "mimeType":"text/html", "encoding":"utf-8", "header":{"Referer": "http://ysting.ysxs8.vip:81"}}
  112. ]
  113. },
  114. "recommend": [{"name": "豆瓣推荐","request": {"method": "GET","header": [{"key": "Referer","value": "https://movie.douban.com/"}],"url": {"raw": "https://movie.douban.com/j/new_search_subjects?sort=U&range=0,10&tags=&playable=1&start=0&year_range=2022,2022"}},"response": {"result": "$.data","data": [{"key": "name","value": "title"},{"key": "note","value": "rate"},{"key": "pic","value": "cover"}]},"expires" : "86400"}],
  115. "rating": [{"name": "rating","request": {"method": "GET","url": {"raw": "https://api.wmdb.tv/api/v1/movie/search?q={name}&limit=1"}},"response": {"result": "this","data": [{"key": "rating","value": "doubanRating"}]}}],
  116. "ijk": [{
  117. "group": "软解码",
  118. "options": [{
  119. "category": 4,
  120. "name": "opensles",
  121. "value": "0"
  122. },
  123. {
  124. "category": 4,
  125. "name": "overlay-format",
  126. "value": "842225234"
  127. },
  128. {
  129. "category": 4,
  130. "name": "framedrop",
  131. "value": "1"
  132. },
  133. {
  134. "category": 4,
  135. "name": "soundtouch",
  136. "value": "1"
  137. },
  138. {
  139. "category": 4,
  140. "name": "start-on-prepared",
  141. "value": "1"
  142. },
  143. {
  144. "category": 1,
  145. "name": "http-detect-range-support",
  146. "value": "0"
  147. },
  148. {
  149. "category": 1,
  150. "name": "fflags",
  151. "value": "fastseek"
  152. },
  153. {
  154. "category": 2,
  155. "name": "skip_loop_filter",
  156. "value": "48"
  157. },
  158. {
  159. "category": 4,
  160. "name": "reconnect",
  161. "value": "1"
  162. },
  163. {
  164. "category": 4,
  165. "name": "max-buffer-size",
  166. "value": "15728640"
  167. },
  168. {
  169. "category": 4,
  170. "name": "enable-accurate-seek",
  171. "value": "0"
  172. },
  173. {
  174. "category": 4,
  175. "name": "mediacodec",
  176. "value": "0"
  177. },
  178. {
  179. "category": 4,
  180. "name": "mediacodec-auto-rotate",
  181. "value": "0"
  182. },
  183. {
  184. "category": 4,
  185. "name": "mediacodec-handle-resolution-change",
  186. "value": "0"
  187. },
  188. {
  189. "category": 4,
  190. "name": "mediacodec-hevc",
  191. "value": "0"
  192. }
  193. ]
  194. },
  195. {
  196. "group": "硬解码",
  197. "options": [{
  198. "category": 4,
  199. "name": "opensles",
  200. "value": "0"
  201. },
  202. {
  203. "category": 4,
  204. "name": "overlay-format",
  205. "value": "842225234"
  206. },
  207. {
  208. "category": 4,
  209. "name": "framedrop",
  210. "value": "1"
  211. },
  212. {
  213. "category": 4,
  214. "name": "soundtouch",
  215. "value": "1"
  216. },
  217. {
  218. "category": 4,
  219. "name": "start-on-prepared",
  220. "value": "1"
  221. },
  222. {
  223. "category": 1,
  224. "name": "http-detect-range-support",
  225. "value": "0"
  226. },
  227. {
  228. "category": 1,
  229. "name": "fflags",
  230. "value": "fastseek"
  231. },
  232. {
  233. "category": 2,
  234. "name": "skip_loop_filter",
  235. "value": "48"
  236. },
  237. {
  238. "category": 4,
  239. "name": "reconnect",
  240. "value": "1"
  241. },
  242. {
  243. "category": 4,
  244. "name": "max-buffer-size",
  245. "value": "15728640"
  246. },
  247. {
  248. "category": 4,
  249. "name": "enable-accurate-seek",
  250. "value": "0"
  251. },
  252. {
  253. "category": 4,
  254. "name": "mediacodec",
  255. "value": "1"
  256. },
  257. {
  258. "category": 4,
  259. "name": "mediacodec-auto-rotate",
  260. "value": "1"
  261. },
  262. {
  263. "category": 4,
  264. "name": "mediacodec-handle-resolution-change",
  265. "value": "1"
  266. },
  267. {
  268. "category": 4,
  269. "name": "mediacodec-hevc",
  270. "value": "1"
  271. }
  272. ]
  273. }
  274. ],
  275. "rules":{{config.EXT_FUNC or []}},
  276. "ads": [
  277. "mimg.0c1q0l.cn",
  278. "www.googletagmanager.com",
  279. "www.google-analytics.com",
  280. "mc.usihnbcq.cn",
  281. "mg.g1mm3d.cn",
  282. "mscs.svaeuzh.cn",
  283. "cnzz.hhttm.top",
  284. "tp.vinuxhome.com",
  285. "cnzz.mmstat.com",
  286. "www.baihuillq.com",
  287. "s23.cnzz.com",
  288. "z3.cnzz.com",
  289. "c.cnzz.com",
  290. "stj.v1vo.top",
  291. "z12.cnzz.com",
  292. "img.mosflower.cn",
  293. "tips.gamevvip.com",
  294. "ehwe.yhdtns.com",
  295. "xdn.cqqc3.com",
  296. "www.jixunkyy.cn",
  297. "sp.chemacid.cn",
  298. "hm.baidu.com",
  299. "s9.cnzz.com",
  300. "z6.cnzz.com",
  301. "um.cavuc.com",
  302. "mav.mavuz.com",
  303. "wofwk.aoidf3.com",
  304. "z5.cnzz.com",
  305. "xc.hubeijieshikj.cn",
  306. "tj.tianwenhu.com",
  307. "xg.gars57.cn",
  308. "k.jinxiuzhilv.com",
  309. "cdn.bootcss.com",
  310. "ppl.xunzhuo123.com",
  311. "xomk.jiangjunmh.top",
  312. "img.xunzhuo123.com",
  313. "z1.cnzz.com",
  314. "s13.cnzz.com",
  315. "xg.huataisangao.cn",
  316. "z7.cnzz.com",
  317. "xg.huataisangao.cn",
  318. "z2.cnzz.com",
  319. "s96.cnzz.com",
  320. "q11.cnzz.com",
  321. "thy.dacedsfa.cn",
  322. "xg.whsbpw.cn",
  323. "s19.cnzz.com",
  324. "z8.cnzz.com",
  325. "s4.cnzz.com",
  326. "f5w.as12df.top",
  327. "ae01.alicdn.com",
  328. "www.92424.cn",
  329. "k.wudejia.com",
  330. "vivovip.mmszxc.top",
  331. "qiu.xixiqiu.com",
  332. "cdnjs.hnfenxun.com",
  333. "cms.qdwght.com",
  334. "wan.51img1.com",
  335. "iqiyi.hbuioo.com",
  336. "vip.ffzyad.com",
  337. "https://lf1-cdn-tos.bytegoofy.com/obj/tos-cn-i-dy/455ccf9e8ae744378118e4bd289288dd"
  338. ]
  339. }