小学课堂.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949
  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. 一年级数学: {
  33. tid: '一年级数学'
  34. },
  35. 一年级英语: {
  36. tid: '一年级英语'
  37. },
  38. 二年级语文: {
  39. tid: '二年级语文'
  40. },
  41. 二年级数学: {
  42. tid: '二年级数学'
  43. },
  44. 二年级英语: {
  45. tid: '二年级英语'
  46. },
  47. 三年级语文: {
  48. tid: '三年级语文'
  49. },
  50. 三年级数学: {
  51. tid: '三年级数学'
  52. },
  53. 三年级英语: {
  54. tid: '三年级英语'
  55. },
  56. 四年级语文: {
  57. tid: '四年级语文'
  58. },
  59. 四年级数学: {
  60. tid: '四年级数学'
  61. },
  62. 四年级英语: {
  63. tid: '四年级英语'
  64. },
  65. 五年级语文: {
  66. tid: '五年级语文'
  67. },
  68. 五年级数学: {
  69. tid: '五年级数学'
  70. },
  71. 五年级英语: {
  72. tid: '五年级英语'
  73. },
  74. 六年级语文: {
  75. tid: '六年级语文'
  76. },
  77. 六年级数学: {
  78. tid: '六年级数学'
  79. },
  80. 六年级英语: {
  81. tid: '六年级英语'
  82. }
  83. },
  84. filter: {
  85. "一年级语文": [{
  86. "key": "order",
  87. "name": "分类",
  88. "value": [{
  89. "n": "全部",
  90. "v": "0"
  91. }, {
  92. "n": "沪教版",
  93. "v": "Shanghai teaching edition"
  94. }, {
  95. "n": "人教版",
  96. "v": "People's Education Press"
  97. }, {
  98. "n": "北师大版",
  99. "v": "the edition of Beijing Normal University"
  100. }, {
  101. "n": "苏教版",
  102. "v": "the edition of Jiangsu Education Press"
  103. }]
  104. }, {
  105. "key": "duration",
  106. "name": "时长",
  107. "value": [{
  108. "n": "全部",
  109. "v": "0"
  110. }, {
  111. "n": "60分钟以上",
  112. "v": "4"
  113. }, {
  114. "n": "30~60分钟",
  115. "v": "3"
  116. }, {
  117. "n": "10~30分钟",
  118. "v": "2"
  119. }, {
  120. "n": "10分钟以下",
  121. "v": "1"
  122. }]
  123. }],
  124. "一年级数学": [{
  125. "key": "order",
  126. "name": "分类",
  127. "value": [{
  128. "n": "全部",
  129. "v": "0"
  130. }, {
  131. "n": "沪教版",
  132. "v": "Shanghai teaching edition"
  133. }, {
  134. "n": "人教版",
  135. "v": "People's Education Press"
  136. }, {
  137. "n": "北师大版",
  138. "v": "the edition of Beijing Normal University"
  139. }, {
  140. "n": "苏教版",
  141. "v": "the edition of Jiangsu Education Press"
  142. }]
  143. }, {
  144. "key": "duration",
  145. "name": "时长",
  146. "value": [{
  147. "n": "全部",
  148. "v": "0"
  149. }, {
  150. "n": "60分钟以上",
  151. "v": "4"
  152. }, {
  153. "n": "30~60分钟",
  154. "v": "3"
  155. }, {
  156. "n": "10~30分钟",
  157. "v": "2"
  158. }, {
  159. "n": "10分钟以下",
  160. "v": "1"
  161. }]
  162. }],
  163. "一年级英语": [{
  164. "key": "order",
  165. "name": "分类",
  166. "value": [{
  167. "n": "全部",
  168. "v": "0"
  169. }, {
  170. "n": "沪教版",
  171. "v": "Shanghai teaching edition"
  172. }, {
  173. "n": "人教版",
  174. "v": "People's Education Press"
  175. }, {
  176. "n": "北师大版",
  177. "v": "the edition of Beijing Normal University"
  178. }, {
  179. "n": "苏教版",
  180. "v": "the edition of Jiangsu Education Press"
  181. }]
  182. }, {
  183. "key": "duration",
  184. "name": "时长",
  185. "value": [{
  186. "n": "全部",
  187. "v": "0"
  188. }, {
  189. "n": "60分钟以上",
  190. "v": "4"
  191. }, {
  192. "n": "30~60分钟",
  193. "v": "3"
  194. }, {
  195. "n": "10~30分钟",
  196. "v": "2"
  197. }, {
  198. "n": "10分钟以下",
  199. "v": "1"
  200. }]
  201. }],
  202. "二年级语文": [{
  203. "key": "order",
  204. "name": "分类",
  205. "value": [{
  206. "n": "全部",
  207. "v": "0"
  208. }, {
  209. "n": "沪教版",
  210. "v": "Shanghai teaching edition"
  211. }, {
  212. "n": "人教版",
  213. "v": "People's Education Press"
  214. }, {
  215. "n": "北师大版",
  216. "v": "the edition of Beijing Normal University"
  217. }, {
  218. "n": "苏教版",
  219. "v": "the edition of Jiangsu Education Press"
  220. }]
  221. }, {
  222. "key": "duration",
  223. "name": "时长",
  224. "value": [{
  225. "n": "全部",
  226. "v": "0"
  227. }, {
  228. "n": "60分钟以上",
  229. "v": "4"
  230. }, {
  231. "n": "30~60分钟",
  232. "v": "3"
  233. }, {
  234. "n": "10~30分钟",
  235. "v": "2"
  236. }, {
  237. "n": "10分钟以下",
  238. "v": "1"
  239. }]
  240. }],
  241. "二年级数学": [{
  242. "key": "order",
  243. "name": "分类",
  244. "value": [{
  245. "n": "全部",
  246. "v": "0"
  247. }, {
  248. "n": "沪教版",
  249. "v": "Shanghai teaching edition"
  250. }, {
  251. "n": "人教版",
  252. "v": "People's Education Press"
  253. }, {
  254. "n": "北师大版",
  255. "v": "the edition of Beijing Normal University"
  256. }, {
  257. "n": "苏教版",
  258. "v": "the edition of Jiangsu Education Press"
  259. }]
  260. }, {
  261. "key": "duration",
  262. "name": "时长",
  263. "value": [{
  264. "n": "全部",
  265. "v": "0"
  266. }, {
  267. "n": "60分钟以上",
  268. "v": "4"
  269. }, {
  270. "n": "30~60分钟",
  271. "v": "3"
  272. }, {
  273. "n": "10~30分钟",
  274. "v": "2"
  275. }, {
  276. "n": "10分钟以下",
  277. "v": "1"
  278. }]
  279. }],
  280. "二年级英语": [{
  281. "key": "order",
  282. "name": "分类",
  283. "value": [{
  284. "n": "全部",
  285. "v": "0"
  286. }, {
  287. "n": "沪教版",
  288. "v": "Shanghai teaching edition"
  289. }, {
  290. "n": "人教版",
  291. "v": "People's Education Press"
  292. }, {
  293. "n": "北师大版",
  294. "v": "the edition of Beijing Normal University"
  295. }, {
  296. "n": "苏教版",
  297. "v": "the edition of Jiangsu Education Press"
  298. }]
  299. }, {
  300. "key": "duration",
  301. "name": "时长",
  302. "value": [{
  303. "n": "全部",
  304. "v": "0"
  305. }, {
  306. "n": "60分钟以上",
  307. "v": "4"
  308. }, {
  309. "n": "30~60分钟",
  310. "v": "3"
  311. }, {
  312. "n": "10~30分钟",
  313. "v": "2"
  314. }, {
  315. "n": "10分钟以下",
  316. "v": "1"
  317. }]
  318. }],
  319. "三年级语文": [{
  320. "key": "order",
  321. "name": "分类",
  322. "value": [{
  323. "n": "全部",
  324. "v": "0"
  325. }, {
  326. "n": "沪教版",
  327. "v": "Shanghai teaching edition"
  328. }, {
  329. "n": "人教版",
  330. "v": "People's Education Press"
  331. }, {
  332. "n": "北师大版",
  333. "v": "the edition of Beijing Normal University"
  334. }, {
  335. "n": "苏教版",
  336. "v": "the edition of Jiangsu Education Press"
  337. }]
  338. }, {
  339. "key": "duration",
  340. "name": "时长",
  341. "value": [{
  342. "n": "全部",
  343. "v": "0"
  344. }, {
  345. "n": "60分钟以上",
  346. "v": "4"
  347. }, {
  348. "n": "30~60分钟",
  349. "v": "3"
  350. }, {
  351. "n": "10~30分钟",
  352. "v": "2"
  353. }, {
  354. "n": "10分钟以下",
  355. "v": "1"
  356. }]
  357. }],
  358. "三年级数学": [{
  359. "key": "order",
  360. "name": "分类",
  361. "value": [{
  362. "n": "全部",
  363. "v": "0"
  364. }, {
  365. "n": "沪教版",
  366. "v": "Shanghai teaching edition"
  367. }, {
  368. "n": "人教版",
  369. "v": "People's Education Press"
  370. }, {
  371. "n": "北师大版",
  372. "v": "the edition of Beijing Normal University"
  373. }, {
  374. "n": "苏教版",
  375. "v": "the edition of Jiangsu Education Press"
  376. }]
  377. }, {
  378. "key": "duration",
  379. "name": "时长",
  380. "value": [{
  381. "n": "全部",
  382. "v": "0"
  383. }, {
  384. "n": "60分钟以上",
  385. "v": "4"
  386. }, {
  387. "n": "30~60分钟",
  388. "v": "3"
  389. }, {
  390. "n": "10~30分钟",
  391. "v": "2"
  392. }, {
  393. "n": "10分钟以下",
  394. "v": "1"
  395. }]
  396. }],
  397. "三年级英语": [{
  398. "key": "order",
  399. "name": "分类",
  400. "value": [{
  401. "n": "全部",
  402. "v": "0"
  403. }, {
  404. "n": "沪教版",
  405. "v": "Shanghai teaching edition"
  406. }, {
  407. "n": "人教版",
  408. "v": "People's Education Press"
  409. }, {
  410. "n": "北师大版",
  411. "v": "the edition of Beijing Normal University"
  412. }, {
  413. "n": "苏教版",
  414. "v": "the edition of Jiangsu Education Press"
  415. }]
  416. }, {
  417. "key": "duration",
  418. "name": "时长",
  419. "value": [{
  420. "n": "全部",
  421. "v": "0"
  422. }, {
  423. "n": "60分钟以上",
  424. "v": "4"
  425. }, {
  426. "n": "30~60分钟",
  427. "v": "3"
  428. }, {
  429. "n": "10~30分钟",
  430. "v": "2"
  431. }, {
  432. "n": "10分钟以下",
  433. "v": "1"
  434. }]
  435. }],
  436. "四年级语文": [{
  437. "key": "order",
  438. "name": "分类",
  439. "value": [{
  440. "n": "全部",
  441. "v": "0"
  442. }, {
  443. "n": "沪教版",
  444. "v": "Shanghai teaching edition"
  445. }, {
  446. "n": "人教版",
  447. "v": "People's Education Press"
  448. }, {
  449. "n": "北师大版",
  450. "v": "the edition of Beijing Normal University"
  451. }, {
  452. "n": "苏教版",
  453. "v": "the edition of Jiangsu Education Press"
  454. }]
  455. }, {
  456. "key": "duration",
  457. "name": "时长",
  458. "value": [{
  459. "n": "全部",
  460. "v": "0"
  461. }, {
  462. "n": "60分钟以上",
  463. "v": "4"
  464. }, {
  465. "n": "30~60分钟",
  466. "v": "3"
  467. }, {
  468. "n": "10~30分钟",
  469. "v": "2"
  470. }, {
  471. "n": "10分钟以下",
  472. "v": "1"
  473. }]
  474. }],
  475. "四年级数学": [{
  476. "key": "order",
  477. "name": "分类",
  478. "value": [{
  479. "n": "全部",
  480. "v": "0"
  481. }, {
  482. "n": "沪教版",
  483. "v": "Shanghai teaching edition"
  484. }, {
  485. "n": "人教版",
  486. "v": "People's Education Press"
  487. }, {
  488. "n": "北师大版",
  489. "v": "the edition of Beijing Normal University"
  490. }, {
  491. "n": "苏教版",
  492. "v": "the edition of Jiangsu Education Press"
  493. }]
  494. }, {
  495. "key": "duration",
  496. "name": "时长",
  497. "value": [{
  498. "n": "全部",
  499. "v": "0"
  500. }, {
  501. "n": "60分钟以上",
  502. "v": "4"
  503. }, {
  504. "n": "30~60分钟",
  505. "v": "3"
  506. }, {
  507. "n": "10~30分钟",
  508. "v": "2"
  509. }, {
  510. "n": "10分钟以下",
  511. "v": "1"
  512. }]
  513. }],
  514. "四年级英语": [{
  515. "key": "order",
  516. "name": "分类",
  517. "value": [{
  518. "n": "全部",
  519. "v": "0"
  520. }, {
  521. "n": "沪教版",
  522. "v": "Shanghai teaching edition"
  523. }, {
  524. "n": "人教版",
  525. "v": "People's Education Press"
  526. }, {
  527. "n": "北师大版",
  528. "v": "the edition of Beijing Normal University"
  529. }, {
  530. "n": "苏教版",
  531. "v": "the edition of Jiangsu Education Press"
  532. }]
  533. }, {
  534. "key": "duration",
  535. "name": "时长",
  536. "value": [{
  537. "n": "全部",
  538. "v": "0"
  539. }, {
  540. "n": "60分钟以上",
  541. "v": "4"
  542. }, {
  543. "n": "30~60分钟",
  544. "v": "3"
  545. }, {
  546. "n": "10~30分钟",
  547. "v": "2"
  548. }, {
  549. "n": "10分钟以下",
  550. "v": "1"
  551. }]
  552. }],
  553. "五年级语文": [{
  554. "key": "order",
  555. "name": "分类",
  556. "value": [{
  557. "n": "全部",
  558. "v": "0"
  559. }, {
  560. "n": "沪教版",
  561. "v": "Shanghai teaching edition"
  562. }, {
  563. "n": "人教版",
  564. "v": "People's Education Press"
  565. }, {
  566. "n": "北师大版",
  567. "v": "the edition of Beijing Normal University"
  568. }, {
  569. "n": "苏教版",
  570. "v": "the edition of Jiangsu Education Press"
  571. }]
  572. }, {
  573. "key": "duration",
  574. "name": "时长",
  575. "value": [{
  576. "n": "全部",
  577. "v": "0"
  578. }, {
  579. "n": "60分钟以上",
  580. "v": "4"
  581. }, {
  582. "n": "30~60分钟",
  583. "v": "3"
  584. }, {
  585. "n": "10~30分钟",
  586. "v": "2"
  587. }, {
  588. "n": "10分钟以下",
  589. "v": "1"
  590. }]
  591. }],
  592. "五年级数学": [{
  593. "key": "order",
  594. "name": "分类",
  595. "value": [{
  596. "n": "全部",
  597. "v": "0"
  598. }, {
  599. "n": "沪教版",
  600. "v": "Shanghai teaching edition"
  601. }, {
  602. "n": "人教版",
  603. "v": "People's Education Press"
  604. }, {
  605. "n": "北师大版",
  606. "v": "the edition of Beijing Normal University"
  607. }, {
  608. "n": "苏教版",
  609. "v": "the edition of Jiangsu Education Press"
  610. }]
  611. }, {
  612. "key": "duration",
  613. "name": "时长",
  614. "value": [{
  615. "n": "全部",
  616. "v": "0"
  617. }, {
  618. "n": "60分钟以上",
  619. "v": "4"
  620. }, {
  621. "n": "30~60分钟",
  622. "v": "3"
  623. }, {
  624. "n": "10~30分钟",
  625. "v": "2"
  626. }, {
  627. "n": "10分钟以下",
  628. "v": "1"
  629. }]
  630. }],
  631. "五年级英语": [{
  632. "key": "order",
  633. "name": "分类",
  634. "value": [{
  635. "n": "全部",
  636. "v": "0"
  637. }, {
  638. "n": "沪教版",
  639. "v": "Shanghai teaching edition"
  640. }, {
  641. "n": "人教版",
  642. "v": "People's Education Press"
  643. }, {
  644. "n": "北师大版",
  645. "v": "the edition of Beijing Normal University"
  646. }, {
  647. "n": "苏教版",
  648. "v": "the edition of Jiangsu Education Press"
  649. }]
  650. }, {
  651. "key": "duration",
  652. "name": "时长",
  653. "value": [{
  654. "n": "全部",
  655. "v": "0"
  656. }, {
  657. "n": "60分钟以上",
  658. "v": "4"
  659. }, {
  660. "n": "30~60分钟",
  661. "v": "3"
  662. }, {
  663. "n": "10~30分钟",
  664. "v": "2"
  665. }, {
  666. "n": "10分钟以下",
  667. "v": "1"
  668. }]
  669. }],
  670. "六年级语文": [{
  671. "key": "order",
  672. "name": "分类",
  673. "value": [{
  674. "n": "全部",
  675. "v": "0"
  676. }, {
  677. "n": "沪教版",
  678. "v": "Shanghai teaching edition"
  679. }, {
  680. "n": "人教版",
  681. "v": "People's Education Press"
  682. }, {
  683. "n": "北师大版",
  684. "v": "the edition of Beijing Normal University"
  685. }, {
  686. "n": "苏教版",
  687. "v": "the edition of Jiangsu Education Press"
  688. }]
  689. }, {
  690. "key": "duration",
  691. "name": "时长",
  692. "value": [{
  693. "n": "全部",
  694. "v": "0"
  695. }, {
  696. "n": "60分钟以上",
  697. "v": "4"
  698. }, {
  699. "n": "30~60分钟",
  700. "v": "3"
  701. }, {
  702. "n": "10~30分钟",
  703. "v": "2"
  704. }, {
  705. "n": "10分钟以下",
  706. "v": "1"
  707. }]
  708. }],
  709. "六年级数学": [{
  710. "key": "order",
  711. "name": "分类",
  712. "value": [{
  713. "n": "全部",
  714. "v": "0"
  715. }, {
  716. "n": "沪教版",
  717. "v": "Shanghai teaching edition"
  718. }, {
  719. "n": "人教版",
  720. "v": "People's Education Press"
  721. }, {
  722. "n": "北师大版",
  723. "v": "the edition of Beijing Normal University"
  724. }, {
  725. "n": "苏教版",
  726. "v": "the edition of Jiangsu Education Press"
  727. }]
  728. }, {
  729. "key": "duration",
  730. "name": "时长",
  731. "value": [{
  732. "n": "全部",
  733. "v": "0"
  734. }, {
  735. "n": "60分钟以上",
  736. "v": "4"
  737. }, {
  738. "n": "30~60分钟",
  739. "v": "3"
  740. }, {
  741. "n": "10~30分钟",
  742. "v": "2"
  743. }, {
  744. "n": "10分钟以下",
  745. "v": "1"
  746. }]
  747. }],
  748. "六年级英语": [{
  749. "key": "order",
  750. "name": "分类",
  751. "value": [{
  752. "n": "全部",
  753. "v": "0"
  754. }, {
  755. "n": "沪教版",
  756. "v": "Shanghai teaching edition"
  757. }, {
  758. "n": "人教版",
  759. "v": "People's Education Press"
  760. }, {
  761. "n": "北师大版",
  762. "v": "the edition of Beijing Normal University"
  763. }, {
  764. "n": "苏教版",
  765. "v": "the edition of Jiangsu Education Press"
  766. }]
  767. }, {
  768. "key": "duration",
  769. "name": "时长",
  770. "value": [{
  771. "n": "全部",
  772. "v": "0"
  773. }, {
  774. "n": "60分钟以上",
  775. "v": "4"
  776. }, {
  777. "n": "30~60分钟",
  778. "v": "3"
  779. }, {
  780. "n": "10~30分钟",
  781. "v": "2"
  782. }, {
  783. "n": "10分钟以下",
  784. "v": "1"
  785. }]
  786. }]
  787. },
  788. detailUrl: '/x/web-interface/view?aid=fyid', //二级详情拼接链接(json格式用)
  789. searchUrl: '/x/web-interface/search/type?search_type=video&keyword=**&page=fypage',
  790. searchable: 2,
  791. quickSearch: 0,
  792. headers: {
  793. "User-Agent": "PC_UA",
  794. "Referer": "https://www.bilibili.com",
  795. "Cookie": "https://d.kstore.space/download/6296/cookie.txt"
  796. },
  797. timeout: 5000,
  798. limit: 8,
  799. play_parse: true,
  800. lazy: `js:
  801. let ids = input.split('_');
  802. let dan = 'https://api.bilibili.com/x/v1/dm/list.so?oid=' + ids[1];
  803. let result = {};
  804. let iurl = 'https://api.bilibili.com:443/x/player/playurl?avid=' + ids[0] + '&cid=' + ids[1] + '&qn=116';
  805. let html = request(iurl);
  806. let jRoot = JSON.parse(html);
  807. let jo = jRoot.data;
  808. let ja = jo.durl;
  809. let maxSize = -1;
  810. let position = -1;
  811. ja.forEach(function(tmpJo, i) {
  812. if (maxSize < Number(tmpJo.size)) {
  813. maxSize = Number(tmpJo.size);
  814. position = i
  815. }
  816. });
  817. let purl = '';
  818. if (ja.length > 0) {
  819. if (position === -1) {
  820. position = 0
  821. }
  822. purl = ja[position].url
  823. }
  824. result.parse = 0;
  825. result.playUrl = '';
  826. result.url = unescape(purl);
  827. result.header = {
  828. 'Referer': 'https://live.bilibili.com',
  829. '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'
  830. };
  831. result.contentType = 'video/x-flv';
  832. result.danmaku = dan;
  833. input = result
  834. `,
  835. double: false,
  836. 推荐: '*',
  837. // 一级:'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}',
  838. 一级: `js:
  839. let html = request(input);
  840. function stripHtmlTag(src) {
  841. return src.replace(/<\\/?[^>]+(>|$)/g, '').replace(/&.{1,5};/g, '').replace(/\\s{2,}/g, ' ');
  842. }
  843. function turnDHM(duration) {
  844. let min = duration.split(':')[0];
  845. let sec = duration.split(':')[1];
  846. if (min == 0) {
  847. return sec + '秒'
  848. } else if (0 < min && min < 60) {
  849. return min + '分'
  850. } else if (60 <= min && min < 1440) {
  851. if (min % 60 == 0) {
  852. let h = min / 60;
  853. return h + '小时'
  854. } else {
  855. let h = min / 60;
  856. h = (h + '').split('.')[0];
  857. let m = min % 60;
  858. return h + '小时' + m + '分';
  859. }
  860. } else if (min >= 1440) {
  861. let d = min / 60 / 24;
  862. d = (d + '').split('.')[0];
  863. let h = min / 60 % 24;
  864. h = (h + '').split('.')[0];
  865. let m = min % 60;
  866. let dhm = '';
  867. if (d > 0) {
  868. dhm = d + '天'
  869. }
  870. if (h >= 1) {
  871. dhm = dhm + h + '小时'
  872. }
  873. if (m > 0) {
  874. dhm = dhm + m + '分'
  875. }
  876. return dhm
  877. }
  878. return null
  879. }
  880. let videos = [];
  881. let vodList = JSON.parse(html).data.result;
  882. vodList.forEach(function(vod) {
  883. let aid = vod.aid;
  884. let title = stripHtmlTag(vod.title);
  885. let img = 'https:' + vod.pic;
  886. let remark = turnDHM(vod.duration);
  887. videos.push({
  888. vod_id: aid,
  889. vod_name: title,
  890. vod_pic: img,
  891. vod_remarks: remark
  892. })
  893. });
  894. VODS = videos
  895. `,
  896. 二级: `js:
  897. function stripHtmlTag(src) {
  898. return src.replace(/<\\/?[^>]+(>|$)/g, '').replace(/&.{1,5};/g, '').replace(/\\s{2,}/g, ' ');
  899. }
  900. let html = request(input);
  901. let jo = JSON.parse(html).data;
  902. let aid = jo.aid;
  903. let title = stripHtmlTag(jo.title);
  904. let pic = jo.pic;
  905. let desc = jo.desc;
  906. let year = jo.pubdate;
  907. let dire = jo.owner.name;
  908. let typeName = jo.tname;
  909. let remark = jo.duration;
  910. let vod = {
  911. vod_id: aid,
  912. vod_name: title,
  913. vod_pic: pic,
  914. type_name: typeName,
  915. vod_year: year,
  916. vod_area: 'bilidanmu',
  917. vod_remarks: remark,
  918. vod_tags: 'mv',
  919. vod_director: dire,
  920. vod_content: desc
  921. };
  922. let ja = jo.pages;
  923. let playurls = [];
  924. ja.forEach(function(tmpJo) {
  925. let cid = tmpJo.cid;
  926. let part = tmpJo.part.replace('#', '﹟').replace('$', '﹩');
  927. playurls.push(
  928. part + '$' + aid + '_' + cid
  929. )
  930. });
  931. let playUrl = playurls.join('#');
  932. vod.vod_play_from = '肥猫在线';
  933. vod.vod_play_url = playUrl;
  934. VOD = vod;
  935. `,
  936. 搜索: '*',
  937. // 预处理:'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)',
  938. }