少儿教育.js 21 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057
  1. /**
  2. * 影视TV 弹幕支持
  3. * https://t.me/fongmi_offical/
  4. * https://github.com/FongMi/Release/tree/main/apk
  5. * 皮皮虾DMBox 弹幕支持
  6. * 设置 > 窗口预览 > 开启
  7. * https://t.me/pipixiawerun
  8. * vod_area:'bilidanmu'
  9. * Cookie设置
  10. * Cookie获取方法 https://ghproxy.net/https://raw.githubusercontent.com/UndCover/PyramidStore/main/list.md
  11. * Cookie设置方法1: DR-PY 后台管理界面
  12. * CMS后台管理 > 设置中心 > 环境变量 > {"bili_cookie":"XXXXXXX","vmid":"XXXXXX"} > 保存
  13. * Cookie设置方法2: 手动替换Cookie
  14. * 底下代码 headers的
  15. * "Cookie":"$bili_cookie"
  16. * 手动替换为
  17. * "Cookie":"将获取的Cookie黏贴在这"
  18. */
  19. var rule = {
  20. title:'哔哩',
  21. host:'https://api.bilibili.com',
  22. homeUrl:'/x/web-interface/search/type?search_type=video&keyword=少儿早教&page=2',
  23. url:'/x/web-interface/search/type?search_type=videofyfilter',
  24. class_name:'儿歌&国学&故事会&儿童早教&儿童启蒙故事&儿童英语启蒙&儿童歌曲&儿童绘画&睡前故事&儿童动画&儿童音乐&儿童安全教育&贝瓦儿歌&悟空识字&宝宝巴士&儿歌多多&学而思&儿童舞蹈&成语故事&贝乐虎&儿童好声音',
  25. class_url:'儿歌&国学&故事会&儿童早教&儿童启蒙故事&儿童英语启蒙&儿童歌曲&儿童绘画&睡前故事&儿童动画&儿童音乐&儿童安全教育&贝瓦儿歌&悟空识字&宝宝巴士&儿歌多多&学而思&儿童舞蹈&成语故事&贝乐虎&儿童好声音',
  26. filterable: 1,
  27. filter_url: '&keyword={{fl.tid}}&page=fypage&duration={{fl.duration}}&order={{fl.order}}',
  28. filter_def:{
  29. 儿歌: {
  30. tid: '儿歌'
  31. },国学: {
  32. tid: '国学'
  33. },故事会: {
  34. tid: '故事会'
  35. },
  36. 儿童早教: {
  37. tid: '儿童早教'
  38. },
  39. 儿童启蒙故事: {
  40. tid: '儿童启蒙故事'
  41. },
  42. 儿童英语启蒙: {
  43. tid: '儿童英语启蒙'
  44. },
  45. 儿童歌曲: {
  46. tid: '儿童歌曲'
  47. },
  48. 儿童绘画: {
  49. tid: '儿童绘画'
  50. },
  51. 睡前故事: {
  52. tid: '睡前故事'
  53. },
  54. 儿童动画: {
  55. tid: '儿童动画'
  56. },
  57. 儿童音乐: {
  58. tid: '儿童音乐'
  59. },
  60. 儿童安全教育: {
  61. tid: '儿童安全教育'
  62. },
  63. 贝瓦儿歌: {
  64. tid: '贝瓦儿歌'
  65. },
  66. 悟空识字: {
  67. tid: '悟空识字'
  68. },
  69. 宝宝巴士: {
  70. tid: '宝宝巴士'
  71. },
  72. 儿歌多多: {
  73. tid: '儿歌多多'
  74. },
  75. 学而思: {
  76. tid: '学而思'
  77. }
  78. },
  79. filter: {
  80. "儿歌": [{
  81. "key": "order",
  82. "name": "排序",
  83. "value": [{
  84. "n": "综合排序",
  85. "v": "0"
  86. }, {
  87. "n": "最多点击",
  88. "v": "click"
  89. }, {
  90. "n": "最新发布",
  91. "v": "pubdate"
  92. }, {
  93. "n": "最多弹幕",
  94. "v": "dm"
  95. }, {
  96. "n": "最多收藏",
  97. "v": "stow"
  98. }]
  99. }, {
  100. "key": "duration",
  101. "name": "时长",
  102. "value": [{
  103. "n": "全部",
  104. "v": "0"
  105. }, {
  106. "n": "60分钟以上",
  107. "v": "4"
  108. }, {
  109. "n": "30~60分钟",
  110. "v": "3"
  111. }, {
  112. "n": "10~30分钟",
  113. "v": "2"
  114. }, {
  115. "n": "10分钟以下",
  116. "v": "1"
  117. }]
  118. }],
  119. "国学": [{
  120. "key": "order",
  121. "name": "排序",
  122. "value": [{
  123. "n": "综合排序",
  124. "v": "0"
  125. }, {
  126. "n": "最多点击",
  127. "v": "click"
  128. }, {
  129. "n": "最新发布",
  130. "v": "pubdate"
  131. }, {
  132. "n": "最多弹幕",
  133. "v": "dm"
  134. }, {
  135. "n": "最多收藏",
  136. "v": "stow"
  137. }]
  138. }, {
  139. "key": "duration",
  140. "name": "时长",
  141. "value": [{
  142. "n": "全部",
  143. "v": "0"
  144. }, {
  145. "n": "60分钟以上",
  146. "v": "4"
  147. }, {
  148. "n": "30~60分钟",
  149. "v": "3"
  150. }, {
  151. "n": "10~30分钟",
  152. "v": "2"
  153. }, {
  154. "n": "10分钟以下",
  155. "v": "1"
  156. }]
  157. }],
  158. "故事会": [{
  159. "key": "order",
  160. "name": "排序",
  161. "value": [{
  162. "n": "综合排序",
  163. "v": "0"
  164. }, {
  165. "n": "最多点击",
  166. "v": "click"
  167. }, {
  168. "n": "最新发布",
  169. "v": "pubdate"
  170. }, {
  171. "n": "最多弹幕",
  172. "v": "dm"
  173. }, {
  174. "n": "最多收藏",
  175. "v": "stow"
  176. }]
  177. }, {
  178. "key": "duration",
  179. "name": "时长",
  180. "value": [{
  181. "n": "全部",
  182. "v": "0"
  183. }, {
  184. "n": "60分钟以上",
  185. "v": "4"
  186. }, {
  187. "n": "30~60分钟",
  188. "v": "3"
  189. }, {
  190. "n": "10~30分钟",
  191. "v": "2"
  192. }, {
  193. "n": "10分钟以下",
  194. "v": "1"
  195. }]
  196. }],
  197. "儿童早教": [{
  198. "key": "order",
  199. "name": "排序",
  200. "value": [{
  201. "n": "综合排序",
  202. "v": "0"
  203. }, {
  204. "n": "最多点击",
  205. "v": "click"
  206. }, {
  207. "n": "最新发布",
  208. "v": "pubdate"
  209. }, {
  210. "n": "最多弹幕",
  211. "v": "dm"
  212. }, {
  213. "n": "最多收藏",
  214. "v": "stow"
  215. }]
  216. }, {
  217. "key": "duration",
  218. "name": "时长",
  219. "value": [{
  220. "n": "全部",
  221. "v": "0"
  222. }, {
  223. "n": "60分钟以上",
  224. "v": "4"
  225. }, {
  226. "n": "30~60分钟",
  227. "v": "3"
  228. }, {
  229. "n": "10~30分钟",
  230. "v": "2"
  231. }, {
  232. "n": "10分钟以下",
  233. "v": "1"
  234. }]
  235. }],
  236. "儿童启蒙故事": [{
  237. "key": "order",
  238. "name": "排序",
  239. "value": [{
  240. "n": "综合排序",
  241. "v": "0"
  242. }, {
  243. "n": "最多点击",
  244. "v": "click"
  245. }, {
  246. "n": "最新发布",
  247. "v": "pubdate"
  248. }, {
  249. "n": "最多弹幕",
  250. "v": "dm"
  251. }, {
  252. "n": "最多收藏",
  253. "v": "stow"
  254. }]
  255. }, {
  256. "key": "duration",
  257. "name": "时长",
  258. "value": [{
  259. "n": "全部",
  260. "v": "0"
  261. }, {
  262. "n": "60分钟以上",
  263. "v": "4"
  264. }, {
  265. "n": "30~60分钟",
  266. "v": "3"
  267. }, {
  268. "n": "10~30分钟",
  269. "v": "2"
  270. }, {
  271. "n": "10分钟以下",
  272. "v": "1"
  273. }]
  274. }],
  275. "儿童英语启蒙": [{
  276. "key": "order",
  277. "name": "排序",
  278. "value": [{
  279. "n": "综合排序",
  280. "v": "0"
  281. }, {
  282. "n": "最多点击",
  283. "v": "click"
  284. }, {
  285. "n": "最新发布",
  286. "v": "pubdate"
  287. }, {
  288. "n": "最多弹幕",
  289. "v": "dm"
  290. }, {
  291. "n": "最多收藏",
  292. "v": "stow"
  293. }]
  294. }, {
  295. "key": "duration",
  296. "name": "时长",
  297. "value": [{
  298. "n": "全部",
  299. "v": "0"
  300. }, {
  301. "n": "60分钟以上",
  302. "v": "4"
  303. }, {
  304. "n": "30~60分钟",
  305. "v": "3"
  306. }, {
  307. "n": "10~30分钟",
  308. "v": "2"
  309. }, {
  310. "n": "10分钟以下",
  311. "v": "1"
  312. }]
  313. }],
  314. "儿童歌曲": [{
  315. "key": "order",
  316. "name": "排序",
  317. "value": [{
  318. "n": "综合排序",
  319. "v": "0"
  320. }, {
  321. "n": "最多点击",
  322. "v": "click"
  323. }, {
  324. "n": "最新发布",
  325. "v": "pubdate"
  326. }, {
  327. "n": "最多弹幕",
  328. "v": "dm"
  329. }, {
  330. "n": "最多收藏",
  331. "v": "stow"
  332. }]
  333. }, {
  334. "key": "duration",
  335. "name": "时长",
  336. "value": [{
  337. "n": "全部",
  338. "v": "0"
  339. }, {
  340. "n": "60分钟以上",
  341. "v": "4"
  342. }, {
  343. "n": "30~60分钟",
  344. "v": "3"
  345. }, {
  346. "n": "10~30分钟",
  347. "v": "2"
  348. }, {
  349. "n": "10分钟以下",
  350. "v": "1"
  351. }]
  352. }],
  353. "儿童绘画": [{
  354. "key": "order",
  355. "name": "排序",
  356. "value": [{
  357. "n": "综合排序",
  358. "v": "0"
  359. }, {
  360. "n": "最多点击",
  361. "v": "click"
  362. }, {
  363. "n": "最新发布",
  364. "v": "pubdate"
  365. }, {
  366. "n": "最多弹幕",
  367. "v": "dm"
  368. }, {
  369. "n": "最多收藏",
  370. "v": "stow"
  371. }]
  372. }, {
  373. "key": "duration",
  374. "name": "时长",
  375. "value": [{
  376. "n": "全部",
  377. "v": "0"
  378. }, {
  379. "n": "60分钟以上",
  380. "v": "4"
  381. }, {
  382. "n": "30~60分钟",
  383. "v": "3"
  384. }, {
  385. "n": "10~30分钟",
  386. "v": "2"
  387. }, {
  388. "n": "10分钟以下",
  389. "v": "1"
  390. }]
  391. }],
  392. "睡前故事": [{
  393. "key": "order",
  394. "name": "排序",
  395. "value": [{
  396. "n": "综合排序",
  397. "v": "0"
  398. }, {
  399. "n": "最多点击",
  400. "v": "click"
  401. }, {
  402. "n": "最新发布",
  403. "v": "pubdate"
  404. }, {
  405. "n": "最多弹幕",
  406. "v": "dm"
  407. }, {
  408. "n": "最多收藏",
  409. "v": "stow"
  410. }]
  411. }, {
  412. "key": "duration",
  413. "name": "时长",
  414. "value": [{
  415. "n": "全部",
  416. "v": "0"
  417. }, {
  418. "n": "60分钟以上",
  419. "v": "4"
  420. }, {
  421. "n": "30~60分钟",
  422. "v": "3"
  423. }, {
  424. "n": "10~30分钟",
  425. "v": "2"
  426. }, {
  427. "n": "10分钟以下",
  428. "v": "1"
  429. }]
  430. }],
  431. "儿童动画": [{
  432. "key": "order",
  433. "name": "排序",
  434. "value": [{
  435. "n": "综合排序",
  436. "v": "0"
  437. }, {
  438. "n": "最多点击",
  439. "v": "click"
  440. }, {
  441. "n": "最新发布",
  442. "v": "pubdate"
  443. }, {
  444. "n": "最多弹幕",
  445. "v": "dm"
  446. }, {
  447. "n": "最多收藏",
  448. "v": "stow"
  449. }]
  450. }, {
  451. "key": "duration",
  452. "name": "时长",
  453. "value": [{
  454. "n": "全部",
  455. "v": "0"
  456. }, {
  457. "n": "60分钟以上",
  458. "v": "4"
  459. }, {
  460. "n": "30~60分钟",
  461. "v": "3"
  462. }, {
  463. "n": "10~30分钟",
  464. "v": "2"
  465. }, {
  466. "n": "10分钟以下",
  467. "v": "1"
  468. }]
  469. }],
  470. "儿童音乐": [{
  471. "key": "order",
  472. "name": "排序",
  473. "value": [{
  474. "n": "综合排序",
  475. "v": "0"
  476. }, {
  477. "n": "最多点击",
  478. "v": "click"
  479. }, {
  480. "n": "最新发布",
  481. "v": "pubdate"
  482. }, {
  483. "n": "最多弹幕",
  484. "v": "dm"
  485. }, {
  486. "n": "最多收藏",
  487. "v": "stow"
  488. }]
  489. }, {
  490. "key": "duration",
  491. "name": "时长",
  492. "value": [{
  493. "n": "全部",
  494. "v": "0"
  495. }, {
  496. "n": "60分钟以上",
  497. "v": "4"
  498. }, {
  499. "n": "30~60分钟",
  500. "v": "3"
  501. }, {
  502. "n": "10~30分钟",
  503. "v": "2"
  504. }, {
  505. "n": "10分钟以下",
  506. "v": "1"
  507. }]
  508. }],
  509. "儿童安全教育": [{
  510. "key": "order",
  511. "name": "排序",
  512. "value": [{
  513. "n": "综合排序",
  514. "v": "0"
  515. }, {
  516. "n": "最多点击",
  517. "v": "click"
  518. }, {
  519. "n": "最新发布",
  520. "v": "pubdate"
  521. }, {
  522. "n": "最多弹幕",
  523. "v": "dm"
  524. }, {
  525. "n": "最多收藏",
  526. "v": "stow"
  527. }]
  528. }, {
  529. "key": "duration",
  530. "name": "时长",
  531. "value": [{
  532. "n": "全部",
  533. "v": "0"
  534. }, {
  535. "n": "60分钟以上",
  536. "v": "4"
  537. }, {
  538. "n": "30~60分钟",
  539. "v": "3"
  540. }, {
  541. "n": "10~30分钟",
  542. "v": "2"
  543. }, {
  544. "n": "10分钟以下",
  545. "v": "1"
  546. }]
  547. }],
  548. "贝瓦儿歌": [{
  549. "key": "order",
  550. "name": "排序",
  551. "value": [{
  552. "n": "综合排序",
  553. "v": "0"
  554. }, {
  555. "n": "最多点击",
  556. "v": "click"
  557. }, {
  558. "n": "最新发布",
  559. "v": "pubdate"
  560. }, {
  561. "n": "最多弹幕",
  562. "v": "dm"
  563. }, {
  564. "n": "最多收藏",
  565. "v": "stow"
  566. }]
  567. }, {
  568. "key": "duration",
  569. "name": "时长",
  570. "value": [{
  571. "n": "全部",
  572. "v": "0"
  573. }, {
  574. "n": "60分钟以上",
  575. "v": "4"
  576. }, {
  577. "n": "30~60分钟",
  578. "v": "3"
  579. }, {
  580. "n": "10~30分钟",
  581. "v": "2"
  582. }, {
  583. "n": "10分钟以下",
  584. "v": "1"
  585. }]
  586. }],
  587. "悟空识字": [{
  588. "key": "order",
  589. "name": "排序",
  590. "value": [{
  591. "n": "综合排序",
  592. "v": "0"
  593. }, {
  594. "n": "最多点击",
  595. "v": "click"
  596. }, {
  597. "n": "最新发布",
  598. "v": "pubdate"
  599. }, {
  600. "n": "最多弹幕",
  601. "v": "dm"
  602. }, {
  603. "n": "最多收藏",
  604. "v": "stow"
  605. }]
  606. }, {
  607. "key": "duration",
  608. "name": "时长",
  609. "value": [{
  610. "n": "全部",
  611. "v": "0"
  612. }, {
  613. "n": "60分钟以上",
  614. "v": "4"
  615. }, {
  616. "n": "30~60分钟",
  617. "v": "3"
  618. }, {
  619. "n": "10~30分钟",
  620. "v": "2"
  621. }, {
  622. "n": "10分钟以下",
  623. "v": "1"
  624. }]
  625. }],
  626. "宝宝巴士": [{
  627. "key": "order",
  628. "name": "排序",
  629. "value": [{
  630. "n": "综合排序",
  631. "v": "0"
  632. }, {
  633. "n": "最多点击",
  634. "v": "click"
  635. }, {
  636. "n": "最新发布",
  637. "v": "pubdate"
  638. }, {
  639. "n": "最多弹幕",
  640. "v": "dm"
  641. }, {
  642. "n": "最多收藏",
  643. "v": "stow"
  644. }]
  645. }, {
  646. "key": "duration",
  647. "name": "时长",
  648. "value": [{
  649. "n": "全部",
  650. "v": "0"
  651. }, {
  652. "n": "60分钟以上",
  653. "v": "4"
  654. }, {
  655. "n": "30~60分钟",
  656. "v": "3"
  657. }, {
  658. "n": "10~30分钟",
  659. "v": "2"
  660. }, {
  661. "n": "10分钟以下",
  662. "v": "1"
  663. }]
  664. }],
  665. "儿歌多多": [{
  666. "key": "order",
  667. "name": "排序",
  668. "value": [{
  669. "n": "综合排序",
  670. "v": "0"
  671. }, {
  672. "n": "最多点击",
  673. "v": "click"
  674. }, {
  675. "n": "最新发布",
  676. "v": "pubdate"
  677. }, {
  678. "n": "最多弹幕",
  679. "v": "dm"
  680. }, {
  681. "n": "最多收藏",
  682. "v": "stow"
  683. }]
  684. }, {
  685. "key": "duration",
  686. "name": "时长",
  687. "value": [{
  688. "n": "全部",
  689. "v": "0"
  690. }, {
  691. "n": "60分钟以上",
  692. "v": "4"
  693. }, {
  694. "n": "30~60分钟",
  695. "v": "3"
  696. }, {
  697. "n": "10~30分钟",
  698. "v": "2"
  699. }, {
  700. "n": "10分钟以下",
  701. "v": "1"
  702. }]
  703. }],
  704. "学而思": [{
  705. "key": "order",
  706. "name": "排序",
  707. "value": [{
  708. "n": "综合排序",
  709. "v": "0"
  710. }, {
  711. "n": "最多点击",
  712. "v": "click"
  713. }, {
  714. "n": "最新发布",
  715. "v": "pubdate"
  716. }, {
  717. "n": "最多弹幕",
  718. "v": "dm"
  719. }, {
  720. "n": "最多收藏",
  721. "v": "stow"
  722. }]
  723. }, {
  724. "key": "duration",
  725. "name": "时长",
  726. "value": [{
  727. "n": "全部",
  728. "v": "0"
  729. }, {
  730. "n": "60分钟以上",
  731. "v": "4"
  732. }, {
  733. "n": "30~60分钟",
  734. "v": "3"
  735. }, {
  736. "n": "10~30分钟",
  737. "v": "2"
  738. }, {
  739. "n": "10分钟以下",
  740. "v": "1"
  741. }]
  742. }],
  743. "儿童舞蹈": [{
  744. "key": "order",
  745. "name": "排序",
  746. "value": [{
  747. "n": "综合排序",
  748. "v": "0"
  749. }, {
  750. "n": "最多点击",
  751. "v": "click"
  752. }, {
  753. "n": "最新发布",
  754. "v": "pubdate"
  755. }, {
  756. "n": "最多弹幕",
  757. "v": "dm"
  758. }, {
  759. "n": "最多收藏",
  760. "v": "stow"
  761. }]
  762. }, {
  763. "key": "duration",
  764. "name": "时长",
  765. "value": [{
  766. "n": "全部",
  767. "v": "0"
  768. }, {
  769. "n": "60分钟以上",
  770. "v": "4"
  771. }, {
  772. "n": "30~60分钟",
  773. "v": "3"
  774. }, {
  775. "n": "10~30分钟",
  776. "v": "2"
  777. }, {
  778. "n": "10分钟以下",
  779. "v": "1"
  780. }]
  781. }],
  782. "成语故事": [{
  783. "key": "order",
  784. "name": "排序",
  785. "value": [{
  786. "n": "综合排序",
  787. "v": "0"
  788. }, {
  789. "n": "最多点击",
  790. "v": "click"
  791. }, {
  792. "n": "最新发布",
  793. "v": "pubdate"
  794. }, {
  795. "n": "最多弹幕",
  796. "v": "dm"
  797. }, {
  798. "n": "最多收藏",
  799. "v": "stow"
  800. }]
  801. }, {
  802. "key": "duration",
  803. "name": "时长",
  804. "value": [{
  805. "n": "全部",
  806. "v": "0"
  807. }, {
  808. "n": "60分钟以上",
  809. "v": "4"
  810. }, {
  811. "n": "30~60分钟",
  812. "v": "3"
  813. }, {
  814. "n": "10~30分钟",
  815. "v": "2"
  816. }, {
  817. "n": "10分钟以下",
  818. "v": "1"
  819. }]
  820. }],
  821. "贝乐虎": [{
  822. "key": "order",
  823. "name": "排序",
  824. "value": [{
  825. "n": "综合排序",
  826. "v": "0"
  827. }, {
  828. "n": "最多点击",
  829. "v": "click"
  830. }, {
  831. "n": "最新发布",
  832. "v": "pubdate"
  833. }, {
  834. "n": "最多弹幕",
  835. "v": "dm"
  836. }, {
  837. "n": "最多收藏",
  838. "v": "stow"
  839. }]
  840. }, {
  841. "key": "duration",
  842. "name": "时长",
  843. "value": [{
  844. "n": "全部",
  845. "v": "0"
  846. }, {
  847. "n": "60分钟以上",
  848. "v": "4"
  849. }, {
  850. "n": "30~60分钟",
  851. "v": "3"
  852. }, {
  853. "n": "10~30分钟",
  854. "v": "2"
  855. }, {
  856. "n": "10分钟以下",
  857. "v": "1"
  858. }]
  859. }],
  860. "儿童好声音": [{
  861. "key": "order",
  862. "name": "排序",
  863. "value": [{
  864. "n": "综合排序",
  865. "v": "0"
  866. }, {
  867. "n": "最多点击",
  868. "v": "click"
  869. }, {
  870. "n": "最新发布",
  871. "v": "pubdate"
  872. }, {
  873. "n": "最多弹幕",
  874. "v": "dm"
  875. }, {
  876. "n": "最多收藏",
  877. "v": "stow"
  878. }]
  879. }, {
  880. "key": "duration",
  881. "name": "时长",
  882. "value": [{
  883. "n": "全部",
  884. "v": "0"
  885. }, {
  886. "n": "60分钟以上",
  887. "v": "4"
  888. }, {
  889. "n": "30~60分钟",
  890. "v": "3"
  891. }, {
  892. "n": "10~30分钟",
  893. "v": "2"
  894. }, {
  895. "n": "10分钟以下",
  896. "v": "1"
  897. }]
  898. }]
  899. },
  900. detailUrl: '/x/web-interface/view?aid=fyid', //二级详情拼接链接(json格式用)
  901. searchUrl: '/x/web-interface/search/type?search_type=video&keyword=**&page=fypage',
  902. searchable: 2,
  903. quickSearch: 0,
  904. headers: {
  905. "User-Agent": "PC_UA",
  906. "Referer": "https://www.bilibili.com",
  907. "Cookie": "https://d.kstore.space/download/6296/cookie.txt"
  908. },
  909. timeout: 5000,
  910. limit: 8,
  911. play_parse: true,
  912. lazy: `js:
  913. let ids = input.split('_');
  914. let dan = 'https://api.bilibili.com/x/v1/dm/list.so?oid=' + ids[1];
  915. let result = {};
  916. let iurl = 'https://api.bilibili.com:443/x/player/playurl?avid=' + ids[0] + '&cid=' + ids[1] + '&qn=116';
  917. let html = request(iurl);
  918. let jRoot = JSON.parse(html);
  919. let jo = jRoot.data;
  920. let ja = jo.durl;
  921. let maxSize = -1;
  922. let position = -1;
  923. ja.forEach(function(tmpJo, i) {
  924. if (maxSize < Number(tmpJo.size)) {
  925. maxSize = Number(tmpJo.size);
  926. position = i
  927. }
  928. });
  929. let purl = '';
  930. if (ja.length > 0) {
  931. if (position === -1) {
  932. position = 0
  933. }
  934. purl = ja[position].url
  935. }
  936. result.parse = 0;
  937. result.playUrl = '';
  938. result.url = unescape(purl);
  939. result.header = {
  940. 'Referer': 'https://live.bilibili.com',
  941. 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36'
  942. };
  943. result.contentType = 'video/x-flv';
  944. result.danmaku = dan;
  945. input = result
  946. `,
  947. double: false,
  948. 推荐: '*',
  949. // 一级:'js:let html=request(input);let msg=JSON.parse(html).message;function title_rep(title){if(/keyword/.test(title)){title=title.replace(\'<em class="keyword">\',"").replace("</em>","").replace("&quot;","\'");log("名称替换👉"+title)};return title}if(msg!=="0"){VODS=[{vod_name:KEY+"➢"+msg,vod_id:"no_data",vod_remarks:"别点,缺少bili_cookie",vod_pic:"https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/404.jpg"}]}else{let videos=[];let vodList=JSON.parse(html).data.result;vodList.forEach(function(vod){let aid=vod["aid"];let title=vod["title"].trim();title=title_rep(title);title=title_rep(title);title=title_rep(title);title=title_rep(title);let img="https:"+vod["pic"];let remark=vod["duration"];videos.push({vod_id:aid,vod_name:title,vod_pic:img,vod_remarks:remark})});VODS=videos}',
  950. 一级: `js:
  951. let html = request(input);
  952. function stripHtmlTag(src) {
  953. return src.replace(/<\\/?[^>]+(>|$)/g, '').replace(/&.{1,5};/g, '').replace(/\\s{2,}/g, ' ');
  954. }
  955. function turnDHM(duration) {
  956. let min = duration.split(':')[0];
  957. let sec = duration.split(':')[1];
  958. if (min == 0) {
  959. return sec + '秒'
  960. } else if (0 < min && min < 60) {
  961. return min + '分'
  962. } else if (60 <= min && min < 1440) {
  963. if (min % 60 == 0) {
  964. let h = min / 60;
  965. return h + '小时'
  966. } else {
  967. let h = min / 60;
  968. h = (h + '').split('.')[0];
  969. let m = min % 60;
  970. return h + '小时' + m + '分';
  971. }
  972. } else if (min >= 1440) {
  973. let d = min / 60 / 24;
  974. d = (d + '').split('.')[0];
  975. let h = min / 60 % 24;
  976. h = (h + '').split('.')[0];
  977. let m = min % 60;
  978. let dhm = '';
  979. if (d > 0) {
  980. dhm = d + '天'
  981. }
  982. if (h >= 1) {
  983. dhm = dhm + h + '小时'
  984. }
  985. if (m > 0) {
  986. dhm = dhm + m + '分'
  987. }
  988. return dhm
  989. }
  990. return null
  991. }
  992. let videos = [];
  993. let vodList = JSON.parse(html).data.result;
  994. vodList.forEach(function(vod) {
  995. let aid = vod.aid;
  996. let title = stripHtmlTag(vod.title);
  997. let img = 'https:' + vod.pic;
  998. let remark = turnDHM(vod.duration);
  999. videos.push({
  1000. vod_id: aid,
  1001. vod_name: title,
  1002. vod_pic: img,
  1003. vod_remarks: remark
  1004. })
  1005. });
  1006. VODS = videos
  1007. `,
  1008. 二级: `js:
  1009. function stripHtmlTag(src) {
  1010. return src.replace(/<\\/?[^>]+(>|$)/g, '').replace(/&.{1,5};/g, '').replace(/\\s{2,}/g, ' ');
  1011. }
  1012. let html = request(input);
  1013. let jo = JSON.parse(html).data;
  1014. let aid = jo.aid;
  1015. let title = stripHtmlTag(jo.title);
  1016. let pic = jo.pic;
  1017. let desc = jo.desc;
  1018. let year = jo.pubdate;
  1019. let dire = jo.owner.name;
  1020. let typeName = jo.tname;
  1021. let remark = jo.duration;
  1022. let vod = {
  1023. vod_id: aid,
  1024. vod_name: title,
  1025. vod_pic: pic,
  1026. type_name: typeName,
  1027. vod_year: year,
  1028. vod_area: 'bilidanmu',
  1029. vod_remarks: remark,
  1030. vod_tags: 'mv',
  1031. vod_director: dire,
  1032. vod_content: desc
  1033. };
  1034. let ja = jo.pages;
  1035. let playurls = [];
  1036. ja.forEach(function(tmpJo) {
  1037. let cid = tmpJo.cid;
  1038. let part = tmpJo.part.replace('#', '﹟').replace('$', '﹩');
  1039. playurls.push(
  1040. part + '$' + aid + '_' + cid
  1041. )
  1042. });
  1043. let playUrl = playurls.join('#');
  1044. vod.vod_play_from = '肥猫在线';
  1045. vod.vod_play_url = playUrl;
  1046. VOD = vod;
  1047. `,
  1048. 搜索: '*',
  1049. // 预处理:'if(rule_fetch_params.headers.Cookie.startsWith("http")){rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);setItem(RULE_CK,cookie)};log(rule_fetch_params.headers.Cookie)',
  1050. }