config.txt.old 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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://gitcode.net/qq_32394351/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?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 %}"{{ host }}/libs/drpy.ym.js"{% else %}"{{ host }}/libs/drpy.min.js"{% endif %},
  23. #"api":"{{ host }}/libs/drpy.js",
  24. "searchable": {{ rule.searchable }},
  25. "quickSearch": {{ rule.quickSearch }},
  26. "filterable": {{ rule.filterable }},
  27. "ext":"{{ host }}/admin/view/{{ rule.name }}.js"
  28. }{% endif %}{% if loop.last==False %},{% endif %}{% endfor %}
  29. {% if js_mode == 1 %},{
  30. "key":"js_drpy",
  31. "name":"drpy(道长)",
  32. "type":1,
  33. "api":"{{ host }}/vod?rule=drpy",
  34. "searchable": 1,
  35. "quickSearch": 1,
  36. "filterable": 1
  37. }{% endif %}
  38. {% if pys %}
  39. ,{% for py in pys %}{
  40. "key":"{{ py.name }}",
  41. "name":"{{ py.name }}(Pyramid)",
  42. "type": 3,
  43. "api":"{{ py.name }}",
  44. "searchable": {{ py.searchable }},
  45. "quickSearch": {{ py.quickSearch }},
  46. "filterable": {{ py.filterable }},
  47. "ext": "{{ host }}/txt/py/{{ py.name }}.py"
  48. }{% if loop.last==False %},{% endif %}{% endfor %}
  49. {% endif %}
  50. ],
  51. "parses": [{
  52. "name": "🌐Ⓤ",
  53. "type": 0,
  54. "url": "",
  55. "header": {
  56. "User-Agent": "Mozilla/5.0"
  57. }
  58. },{
  59. "name": "🌀Ⓙ",
  60. "type": 1,
  61. "url": "",
  62. "header": {
  63. "User-Agent": "Mozilla/5.0"
  64. }
  65. },
  66. {
  67. "name": "轮询",
  68. "type": 2,
  69. "url": "Sequence",
  70. "header": {
  71. "User-Agent": "Mozilla/5.0"
  72. }
  73. },
  74. {
  75. "name": "并发",
  76. "type": 2,
  77. "url": "Parallel",
  78. "header": {
  79. "User-Agent": "Mozilla/5.0"
  80. }
  81. },
  82. {% for jx in jxs %}
  83. {
  84. "name": "{{ jx.name }}",
  85. "url": "{{ jx.url }}",
  86. "type": {{ jx.type }},
  87. "ext": {
  88. "flag": ["qiyi","imgo","爱奇艺", "奇艺", "qq", "腾讯", "youku", "优酷", "pptv", "PPTV", "letv", "乐视","leshi", "bilibili", "哔哩哔哩", "哔哩", "mgtv", "芒果","sohu", "xigua","fun","风行"],
  89. "header": {
  90. "User-Agent": "{{ jx.ua }}"
  91. }
  92. }
  93. }{% if loop.last==False %},{% endif %}{% endfor %}
  94. ],
  95. "flags": ["imgo","youku", "qq", "iqiyi", "qiyi","fun", "letv","leshi","sohu", "tudou","xigua","cntv","1905", "pptv", "mgtv", "wasu", "bilibili", "renrenmi"],
  96. "hotSearch": [{
  97. "name": "mobilesearch",
  98. "request": {
  99. "method": "GET",
  100. "header": [
  101. {
  102. "key": "Referer",
  103. "value": "{{ host }}"
  104. }
  105. ],
  106. "url": {
  107. "raw": "{{ host }}/hotsugg?t={time}"
  108. }
  109. },
  110. "response": {
  111. "result": "$.data",
  112. "data": [
  113. {
  114. "key": "keyword",
  115. "value": "title"
  116. }
  117. ]
  118. }
  119. }],
  120. "lives":[{"group":"redirect","channels":[{"name":"直播","urls":["proxy://do=live&type=txt&ext={{live_url}}"]}]}],
  121. "sniffer": {
  122. "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",
  123. "isVideoFormat": "http((?!http).){26,}\\.(m3u8|mp4|flv|avi|mkv|wmv|mpg|mpeg|mov|ts|3gp|rm|rmvb|asf|m4a|mp3|wma)",
  124. "custom": [
  125. {"url":"/Cloud/Down/AliCloud/", "mimeType":"text/html", "encoding":"utf-8", "header":{"Referer": "https://zxzj.vip/"}}
  126. ]
  127. },
  128. "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"}],
  129. "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"}]}}],
  130. "ijk": [{
  131. "group": "软解码",
  132. "options": [{
  133. "category": 4,
  134. "name": "opensles",
  135. "value": "0"
  136. }, {
  137. "category": 4,
  138. "name": "overlay-format",
  139. "value": "842225234"
  140. }, {
  141. "category": 4,
  142. "name": "framedrop",
  143. "value": "1"
  144. }, {
  145. "category": 4,
  146. "name": "soundtouch",
  147. "value": "1"
  148. }, {
  149. "category": 4,
  150. "name": "start-on-prepared",
  151. "value": "1"
  152. }, {
  153. "category": 1,
  154. "name": "http-detect-range-support",
  155. "value": "0"
  156. }, {
  157. "category": 1,
  158. "name": "fflags",
  159. "value": "fastseek"
  160. }, {
  161. "category": 2,
  162. "name": "skip_loop_filter",
  163. "value": "48"
  164. }, {
  165. "category": 4,
  166. "name": "reconnect",
  167. "value": "1"
  168. }, {
  169. "category": 4,
  170. "name": "enable-accurate-seek",
  171. "value": "0"
  172. }, {
  173. "category": 4,
  174. "name": "mediacodec",
  175. "value": "0"
  176. }, {
  177. "category": 4,
  178. "name": "mediacodec-auto-rotate",
  179. "value": "0"
  180. }, {
  181. "category": 4,
  182. "name": "mediacodec-handle-resolution-change",
  183. "value": "0"
  184. }, {
  185. "category": 4,
  186. "name": "mediacodec-hevc",
  187. "value": "0"
  188. }, {
  189. "category": 1,
  190. "name": "dns_cache_timeout",
  191. "value": "600000000"
  192. }]
  193. }, {
  194. "group": "硬解码",
  195. "options": [{
  196. "category": 4,
  197. "name": "opensles",
  198. "value": "0"
  199. }, {
  200. "category": 4,
  201. "name": "overlay-format",
  202. "value": "842225234"
  203. }, {
  204. "category": 4,
  205. "name": "framedrop",
  206. "value": "1"
  207. }, {
  208. "category": 4,
  209. "name": "soundtouch",
  210. "value": "1"
  211. }, {
  212. "category": 4,
  213. "name": "start-on-prepared",
  214. "value": "1"
  215. }, {
  216. "category": 1,
  217. "name": "http-detect-range-support",
  218. "value": "0"
  219. }, {
  220. "category": 1,
  221. "name": "fflags",
  222. "value": "fastseek"
  223. }, {
  224. "category": 2,
  225. "name": "skip_loop_filter",
  226. "value": "48"
  227. }, {
  228. "category": 4,
  229. "name": "reconnect",
  230. "value": "1"
  231. }, {
  232. "category": 4,
  233. "name": "enable-accurate-seek",
  234. "value": "0"
  235. }, {
  236. "category": 4,
  237. "name": "mediacodec",
  238. "value": "1"
  239. }, {
  240. "category": 4,
  241. "name": "mediacodec-auto-rotate",
  242. "value": "1"
  243. }, {
  244. "category": 4,
  245. "name": "mediacodec-handle-resolution-change",
  246. "value": "1"
  247. }, {
  248. "category": 4,
  249. "name": "mediacodec-hevc",
  250. "value": "1"
  251. }, {
  252. "category": 1,
  253. "name": "dns_cache_timeout",
  254. "value": "600000000"
  255. }]
  256. }],
  257. "ads": ["mimg.0c1q0l.cn", "www.googletagmanager.com", "www.google-analytics.com", "mc.usihnbcq.cn", "mg.g1mm3d.cn", "mscs.svaeuzh.cn", "cnzz.hhttm.top", "tp.vinuxhome.com", "cnzz.mmstat.com", "www.baihuillq.com", "s23.cnzz.com", "z3.cnzz.com", "c.cnzz.com", "stj.v1vo.top", "z12.cnzz.com", "img.mosflower.cn", "tips.gamevvip.com", "ehwe.yhdtns.com", "xdn.cqqc3.com", "www.jixunkyy.cn", "sp.chemacid.cn", "hm.baidu.com", "s9.cnzz.com", "z6.cnzz.com", "um.cavuc.com", "mav.mavuz.com", "wofwk.aoidf3.com", "z5.cnzz.com", "xc.hubeijieshikj.cn", "tj.tianwenhu.com", "xg.gars57.cn", "k.jinxiuzhilv.com", "cdn.bootcss.com", "ppl.xunzhuo123.com", "xomk.jiangjunmh.top", "img.xunzhuo123.com", "z1.cnzz.com", "s13.cnzz.com", "xg.huataisangao.cn", "z7.cnzz.com", "xg.huataisangao.cn", "z2.cnzz.com", "s96.cnzz.com", "q11.cnzz.com", "thy.dacedsfa.cn", "xg.whsbpw.cn", "s19.cnzz.com", "z8.cnzz.com", "s4.cnzz.com", "f5w.as12df.top", "ae01.alicdn.com", "www.92424.cn", "k.wudejia.com", "vivovip.mmszxc.top", "qiu.xixiqiu.com", "cdnjs.hnfenxun.com", "cms.qdwght.com"]
  258. }