素白白弹幕.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803
  1. // 地址发布页 https://subaibai.vip/
  2. var rule = {
  3. title: '小虎斑素白白',
  4. // host:'https://www.subaibaiys.com',
  5. host: 'https://subaibai.vip',
  6. hostJs: 'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src = jsp.pdfh(html,".go:eq(0)&&a&&href");print(src);HOST=src', //网页域名根动态抓取js代码。通过HOST=赋值
  7. // url:'/fyclass/page/fypage',
  8. url: '/fyclassfyfilter',
  9. class_name: '影视筛选&电影&电视剧&热门电影&高分电影&动漫电影&香港经典电影&国产剧&欧美剧&韩剧&动漫剧&漫威宇宙电影系列&速度与激情电影系列&007系列(25部正传+2部外传)',
  10. class_url: 'movie_bt&new-movie&tv-drama&hot-month&high-movie&cartoon-movie&hongkong-movie&domestic-drama&american-drama&korean-drama&anime-drama&marvel-movies&fastfurious&zero-zero-seven',
  11. filterable: 1, //是否启用分类筛选,
  12. tab_rename: {
  13. '道长在线': '在线播放'
  14. },
  15. filter_url: '{{fl.area}}{{fl.year}}{{fl.class}}{{fl.cateId}}/page/fypage',
  16. filter: {
  17. "movie_bt": [{
  18. "key": "cateId",
  19. "name": "分类",
  20. "value": [{
  21. "n": "全部",
  22. "v": ""
  23. }, {
  24. "v": "/movie_bt_series/dongmanju",
  25. "n": "动漫剧"
  26. }, {
  27. "v": "/movie_bt_series/dongmandy",
  28. "n": "动漫电影"
  29. }, {
  30. "v": "/movie_bt_series/yindudy",
  31. "n": "印度电影"
  32. }, {
  33. "v": "/movie_bt_series/guochanju",
  34. "n": "国产剧"
  35. }, {
  36. "v": "/movie_bt_series/guochandy",
  37. "n": "国产电影"
  38. }, {
  39. "v": "/movie_bt_series/riju",
  40. "n": "日剧"
  41. }, {
  42. "v": "/movie_bt_series/rihandy",
  43. "n": "日韩电影"
  44. }, {
  45. "v": "/movie_bt_series/oumeiju",
  46. "n": "欧美剧"
  47. }, {
  48. "v": "/movie_bt_series/oumeidy",
  49. "n": "欧美电影"
  50. }, {
  51. "v": "/movie_bt_series/taiju",
  52. "n": "泰剧"
  53. }, {
  54. "v": "/movie_bt_series/thaidy",
  55. "n": "泰国电影"
  56. }, {
  57. "v": "/movie_bt_series/gangju",
  58. "n": "港台剧"
  59. }, {
  60. "v": "/movie_bt_series/gangtaidy",
  61. "n": "港台电影"
  62. }, {
  63. "v": "/movie_bt_series/documentary",
  64. "n": "纪录片"
  65. }, {
  66. "v": "/movie_bt_series/zongyi",
  67. "n": "综艺"
  68. }, {
  69. "v": "/movie_bt_series/hanju",
  70. "n": "韩剧"
  71. }, {
  72. "v": "/movie_bt_series/xianggangdy",
  73. "n": "香港经典电影"
  74. }]
  75. }, {
  76. "key": "class",
  77. "name": "类型",
  78. "value": [{
  79. "n": "全部",
  80. "v": ""
  81. }, {
  82. "v": "/movie_bt_tags/pop-popular",
  83. "n": "POP流行"
  84. }, {
  85. "v": "/movie_bt_tags/biography",
  86. "n": "传记"
  87. }, {
  88. "v": "/movie_bt_tags/child",
  89. "n": "儿童"
  90. }, {
  91. "v": "/movie_bt_tags/adventure",
  92. "n": "冒险"
  93. }, {
  94. "v": "/movie_bt_tags/plot",
  95. "n": "剧情"
  96. }, {
  97. "v": "/movie_bt_tags/action",
  98. "n": "动作"
  99. }, {
  100. "v": "/movie_bt_tags/anime",
  101. "n": "动漫"
  102. }, {
  103. "v": "/movie_bt_tags/animation",
  104. "n": "动画"
  105. }, {
  106. "v": "/movie_bt_tags/history",
  107. "n": "历史"
  108. }, {
  109. "v": "/movie_bt_tags/costume",
  110. "n": "古装"
  111. }, {
  112. "v": "/movie_bt_tags/antiquity",
  113. "n": "古风"
  114. }, {
  115. "v": "/movie_bt_tags/homosexual",
  116. "n": "同性"
  117. }, {
  118. "v": "/movie_bt_tags/comedy",
  119. "n": "喜剧"
  120. }, {
  121. "v": "/movie_bt_tags/fantasy",
  122. "n": "奇幻"
  123. }, {
  124. "v": "/movie_bt_tags/family",
  125. "n": "家庭"
  126. }, {
  127. "v": "/movie_bt_tags/terror",
  128. "n": "恐怖"
  129. }, {
  130. "v": "/movie_bt_tags/suspense",
  131. "n": "悬疑"
  132. }, {
  133. "v": "/movie_bt_tags/erotic",
  134. "n": "情色"
  135. }, {
  136. "v": "/movie_bt_tags/thriller",
  137. "n": "惊悚"
  138. }, {
  139. "v": "/movie_bt_tags/drama",
  140. "n": "戏曲"
  141. }, {
  142. "v": "/movie_bt_tags/war",
  143. "n": "战争"
  144. }, {
  145. "v": "/movie_bt_tags/latin",
  146. "n": "拉丁"
  147. }, {
  148. "v": "/movie_bt_tags/funny",
  149. "n": "搞笑"
  150. }, {
  151. "v": "/movie_bt_tags/campus",
  152. "n": "校园"
  153. }, {
  154. "v": "/movie_bt_tags/song-and-dance",
  155. "n": "歌舞"
  156. }, {
  157. "v": "/movie_bt_tags/martial-arts",
  158. "n": "武侠"
  159. }, {
  160. "v": "/movie_bt_tags/disaster",
  161. "n": "灾难"
  162. }, {
  163. "v": "/movie_bt_tags/love",
  164. "n": "爱情"
  165. }, {
  166. "v": "/movie_bt_tags/crime",
  167. "n": "犯罪"
  168. }, {
  169. "v": "/movie_bt_tags/fancy",
  170. "n": "玄幻"
  171. }, {
  172. "v": "/movie_bt_tags/reality-show",
  173. "n": "真人秀"
  174. }, {
  175. "v": "/movie_bt_tags/short-film",
  176. "n": "短片"
  177. }, {
  178. "v": "/movie_bt_tags/kehuan",
  179. "n": "科幻"
  180. }, {
  181. "v": "/movie_bt_tags/documentary",
  182. "n": "纪录片"
  183. }, {
  184. "v": "/movie_bt_tags/talkshow",
  185. "n": "脱口秀"
  186. }, {
  187. "v": "/movie_bt_tags/stageart",
  188. "n": "舞台艺术"
  189. }, {
  190. "v": "/movie_bt_tags/west",
  191. "n": "西部"
  192. }, {
  193. "v": "/movie_bt_tags/sport",
  194. "n": "运动"
  195. }, {
  196. "v": "/movie_bt_tags/youth",
  197. "n": "青春"
  198. }, {
  199. "v": "/movie_bt_tags/music",
  200. "n": "音乐"
  201. }, {
  202. "v": "/movie_bt_tags/ghost",
  203. "n": "鬼怪"
  204. }, {
  205. "v": "/movie_bt_tags/black-film",
  206. "n": "黑色电影"
  207. }]
  208. }, {
  209. "key": "area",
  210. "name": "地区",
  211. "value": [{
  212. "n": "全部",
  213. "v": ""
  214. }, {
  215. "v": "/movie_bt_cat/bhutan",
  216. "n": "不丹"
  217. }, {
  218. "v": "/movie_bt_cat/china",
  219. "n": "中国"
  220. }, {
  221. "v": "/movie_bt_cat/china-taiwan",
  222. "n": "中国台湾"
  223. }, {
  224. "v": "/movie_bt_cat/china-mainland",
  225. "n": "中国大陆"
  226. }, {
  227. "v": "/movie_bt_cat/china-hongkong",
  228. "n": "中国香港"
  229. }, {
  230. "v": "/movie_bt_cat/denmark",
  231. "n": "丹麦"
  232. }, {
  233. "v": "/movie_bt_cat/ukraine",
  234. "n": "乌克兰"
  235. }, {
  236. "v": "/movie_bt_cat/uruguay",
  237. "n": "乌拉圭"
  238. }, {
  239. "v": "/movie_bt_cat/israel",
  240. "n": "以色列"
  241. }, {
  242. "v": "/movie_bt_cat/iraq",
  243. "n": "伊拉克"
  244. }, {
  245. "v": "/movie_bt_cat/iran",
  246. "n": "伊朗"
  247. }, {
  248. "v": "/movie_bt_cat/russia",
  249. "n": "俄罗斯"
  250. }, {
  251. "v": "/movie_bt_cat/bulgaria",
  252. "n": "保加利亚"
  253. }, {
  254. "v": "/movie_bt_cat/croatia",
  255. "n": "克罗地亚"
  256. }, {
  257. "v": "/movie_bt_cat/iceland",
  258. "n": "冰岛"
  259. }, {
  260. "v": "/movie_bt_cat/canada",
  261. "n": "加拿大"
  262. }, {
  263. "v": "/movie_bt_cat/hungary",
  264. "n": "匈牙利"
  265. }, {
  266. "v": "/movie_bt_cat/south-africa",
  267. "n": "南非"
  268. }, {
  269. "v": "/movie_bt_cat/botswana",
  270. "n": "博茨瓦纳"
  271. }, {
  272. "v": "/movie_bt_cat/qatar",
  273. "n": "卡塔尔"
  274. }, {
  275. "v": "/movie_bt_cat/luxembourg",
  276. "n": "卢森堡"
  277. }, {
  278. "v": "/movie_bt_cat/india",
  279. "n": "印度"
  280. }, {
  281. "v": "/movie_bt_cat/indonesia",
  282. "n": "印度尼西亚"
  283. }, {
  284. "v": "/movie_bt_cat/kazakhstan",
  285. "n": "哈萨克斯坦"
  286. }, {
  287. "v": "/movie_bt_cat/colombia",
  288. "n": "哥伦比亚"
  289. }, {
  290. "v": "/movie_bt_cat/turkey",
  291. "n": "土耳其"
  292. }, {
  293. "v": "/movie_bt_cat/serbia",
  294. "n": "塞尔维亚"
  295. }, {
  296. "v": "/movie_bt_cat/cyprus",
  297. "n": "塞浦路斯"
  298. }, {
  299. "v": "/movie_bt_cat/mexico",
  300. "n": "墨西哥"
  301. }, {
  302. "v": "/movie_bt_cat/dominica",
  303. "n": "多米尼加"
  304. }, {
  305. "v": "/movie_bt_cat/austria",
  306. "n": "奥地利"
  307. }, {
  308. "v": "/movie_bt_cat/venezuela",
  309. "n": "委内瑞拉"
  310. }, {
  311. "v": "/movie_bt_cat/nigeria",
  312. "n": "尼日利亚"
  313. }, {
  314. "v": "/movie_bt_cat/巴基斯坦",
  315. "n": "巴基斯坦"
  316. }, {
  317. "v": "/movie_bt_cat/paraguay",
  318. "n": "巴拉圭"
  319. }, {
  320. "v": "/movie_bt_cat/brazil",
  321. "n": "巴西"
  322. }, {
  323. "v": "/movie_bt_cat/greece",
  324. "n": "希腊"
  325. }, {
  326. "v": "/movie_bt_cat/germany",
  327. "n": "德国"
  328. }, {
  329. "v": "/movie_bt_cat/italy",
  330. "n": "意大利"
  331. }, {
  332. "v": "/movie_bt_cat/latvia",
  333. "n": "拉脱维亚"
  334. }, {
  335. "v": "/movie_bt_cat/norway",
  336. "n": "挪威"
  337. }, {
  338. "v": "/movie_bt_cat/chech",
  339. "n": "捷克"
  340. }, {
  341. "v": "/movie_bt_cat/摩洛哥",
  342. "n": "摩洛哥"
  343. }, {
  344. "v": "/movie_bt_cat/斯洛伐克",
  345. "n": "斯洛伐克"
  346. }, {
  347. "v": "/movie_bt_cat/slovenia",
  348. "n": "斯洛文尼亚"
  349. }, {
  350. "v": "/movie_bt_cat/singapore",
  351. "n": "新加坡"
  352. }, {
  353. "v": "/movie_bt_cat/zealand",
  354. "n": "新西兰"
  355. }, {
  356. "v": "/movie_bt_cat/japan",
  357. "n": "日本"
  358. }, {
  359. "v": "/movie_bt_cat/chile",
  360. "n": "智利"
  361. }, {
  362. "v": "/movie_bt_cat/north-korea",
  363. "n": "朝鲜"
  364. }, {
  365. "v": "/movie_bt_cat/cambodia",
  366. "n": "柬埔寨"
  367. }, {
  368. "v": "/movie_bt_cat/georgia",
  369. "n": "格鲁吉亚"
  370. }, {
  371. "v": "/movie_bt_cat/belgium",
  372. "n": "比利时"
  373. }, {
  374. "v": "/movie_bt_cat/saudi-arabia",
  375. "n": "沙特阿拉伯"
  376. }, {
  377. "v": "/movie_bt_cat/france",
  378. "n": "法国"
  379. }, {
  380. "v": "/movie_bt_cat/poland",
  381. "n": "波兰"
  382. }, {
  383. "v": "/movie_bt_cat/puertorco",
  384. "n": "波多黎各"
  385. }, {
  386. "v": "/movie_bt_cat/bohei",
  387. "n": "波黑"
  388. }, {
  389. "v": "/movie_bt_cat/thailand",
  390. "n": "泰国"
  391. }, {
  392. "v": "/movie_bt_cat/australia",
  393. "n": "澳大利亚"
  394. }, {
  395. "v": "/movie_bt_cat/ireland",
  396. "n": "爱尔兰"
  397. }, {
  398. "v": "/movie_bt_cat/estonia",
  399. "n": "爱沙尼亚"
  400. }, {
  401. "v": "/movie_bt_cat/sweden",
  402. "n": "瑞典"
  403. }, {
  404. "v": "/movie_bt_cat/switzerland",
  405. "n": "瑞士"
  406. }, {
  407. "v": "/movie_bt_cat/belarus",
  408. "n": "白俄罗斯"
  409. }, {
  410. "v": "/movie_bt_cat/peru",
  411. "n": "秘鲁"
  412. }, {
  413. "v": "/movie_bt_cat/tunisia",
  414. "n": "突尼斯"
  415. }, {
  416. "v": "/movie_bt_cat/lithuania",
  417. "n": "立陶宛"
  418. }, {
  419. "v": "/movie_bt_cat/romania",
  420. "n": "罗马尼亚"
  421. }, {
  422. "v": "/movie_bt_cat/america",
  423. "n": "美国"
  424. }, {
  425. "v": "/movie_bt_cat/finland",
  426. "n": "芬兰"
  427. }, {
  428. "v": "/movie_bt_cat/sovietunion",
  429. "n": "苏联"
  430. }, {
  431. "v": "/movie_bt_cat/england",
  432. "n": "英国"
  433. }, {
  434. "v": "/movie_bt_cat/netherlands",
  435. "n": "荷兰"
  436. }, {
  437. "v": "/movie_bt_cat/philippines",
  438. "n": "菲律宾"
  439. }, {
  440. "v": "/movie_bt_cat/葡萄牙",
  441. "n": "葡萄牙"
  442. }, {
  443. "v": "/movie_bt_cat/west-germany",
  444. "n": "西德"
  445. }, {
  446. "v": "/movie_bt_cat/spain",
  447. "n": "西班牙"
  448. }, {
  449. "v": "/movie_bt_cat/vietnam",
  450. "n": "越南"
  451. }, {
  452. "v": "/movie_bt_cat/argentina",
  453. "n": "阿根廷"
  454. }, {
  455. "v": "/movie_bt_cat/korea",
  456. "n": "韩国"
  457. }, {
  458. "v": "/movie_bt_cat/malaysia",
  459. "n": "马来西亚"
  460. }, {
  461. "v": "/movie_bt_cat/马耳他",
  462. "n": "马耳他"
  463. }]
  464. }, {
  465. "key": "year",
  466. "name": "年份",
  467. "value": [{
  468. "n": "全部",
  469. "v": ""
  470. }, {
  471. "v": "/year/2024",
  472. "n": "2024"
  473. }, {
  474. "v": "/year/2023",
  475. "n": "2023"
  476. }, {
  477. "v": "/year/2022",
  478. "n": "2022"
  479. }, {
  480. "v": "/year/2021",
  481. "n": "2021"
  482. }, {
  483. "v": "/year/2020",
  484. "n": "2020"
  485. }, {
  486. "v": "/year/2019",
  487. "n": "2019"
  488. }, {
  489. "v": "/year/2018",
  490. "n": "2018"
  491. }, {
  492. "v": "/year/2017",
  493. "n": "2017"
  494. }, {
  495. "v": "/year/2016",
  496. "n": "2016"
  497. }, {
  498. "v": "/year/2015",
  499. "n": "2015"
  500. }, {
  501. "v": "/year/2014",
  502. "n": "2014"
  503. }, {
  504. "v": "/year/2013",
  505. "n": "2013"
  506. }, {
  507. "v": "/year/2012",
  508. "n": "2012"
  509. }, {
  510. "v": "/year/2011",
  511. "n": "2011"
  512. }, {
  513. "v": "/year/2010",
  514. "n": "2010"
  515. }, {
  516. "v": "/year/2009",
  517. "n": "2009"
  518. }, {
  519. "v": "/year/2008",
  520. "n": "2008"
  521. }, {
  522. "v": "/year/2007",
  523. "n": "2007"
  524. }, {
  525. "v": "/year/2006",
  526. "n": "2006"
  527. }, {
  528. "v": "/year/2005",
  529. "n": "2005"
  530. }, {
  531. "v": "/year/2004",
  532. "n": "2004"
  533. }, {
  534. "v": "/year/2003",
  535. "n": "2003"
  536. }, {
  537. "v": "/year/2002",
  538. "n": "2002"
  539. }, {
  540. "v": "/year/2001",
  541. "n": "2001"
  542. }, {
  543. "v": "/year/2000",
  544. "n": "2000"
  545. }, {
  546. "v": "/year/1999",
  547. "n": "1999"
  548. }, {
  549. "v": "/year/1998",
  550. "n": "1998"
  551. }, {
  552. "v": "/year/1997",
  553. "n": "1997"
  554. }, {
  555. "v": "/year/1996",
  556. "n": "1996"
  557. }, {
  558. "v": "/year/1995",
  559. "n": "1995"
  560. }, {
  561. "v": "/year/1994",
  562. "n": "1994"
  563. }, {
  564. "v": "/year/1993",
  565. "n": "1993"
  566. }, {
  567. "v": "/year/1992",
  568. "n": "1992"
  569. }, {
  570. "v": "/year/1991",
  571. "n": "1991"
  572. }, {
  573. "v": "/year/1990",
  574. "n": "1990"
  575. }, {
  576. "v": "/year/1989",
  577. "n": "1989"
  578. }, {
  579. "v": "/year/1988",
  580. "n": "1988"
  581. }, {
  582. "v": "/year/1987",
  583. "n": "1987"
  584. }, {
  585. "v": "/year/1986",
  586. "n": "1986"
  587. }, {
  588. "v": "/year/1985",
  589. "n": "1985"
  590. }, {
  591. "v": "/year/1984",
  592. "n": "1984"
  593. }, {
  594. "v": "/year/1983",
  595. "n": "1983"
  596. }, {
  597. "v": "/year/1982",
  598. "n": "1982"
  599. }, {
  600. "v": "/year/1981",
  601. "n": "1981"
  602. }, {
  603. "v": "/year/1980",
  604. "n": "1980"
  605. }, {
  606. "v": "/year/1979",
  607. "n": "1979"
  608. }, {
  609. "v": "/year/1978",
  610. "n": "1978"
  611. }, {
  612. "v": "/year/1977",
  613. "n": "1977"
  614. }, {
  615. "v": "/year/1976",
  616. "n": "1976"
  617. }, {
  618. "v": "/year/1975",
  619. "n": "1975"
  620. }, {
  621. "v": "/year/1974",
  622. "n": "1974"
  623. }, {
  624. "v": "/year/1973",
  625. "n": "1973"
  626. }, {
  627. "v": "/year/1972",
  628. "n": "1972"
  629. }, {
  630. "v": "/year/1971",
  631. "n": "1971"
  632. }, {
  633. "v": "/year/1970",
  634. "n": "1970"
  635. }, {
  636. "v": "/year/1969",
  637. "n": "1969"
  638. }, {
  639. "v": "/year/1968",
  640. "n": "1968"
  641. }, {
  642. "v": "/year/1967",
  643. "n": "1967"
  644. }, {
  645. "v": "/year/1966",
  646. "n": "1966"
  647. }, {
  648. "v": "/year/1965",
  649. "n": "1965"
  650. }, {
  651. "v": "/year/1964",
  652. "n": "1964"
  653. }, {
  654. "v": "/year/1963",
  655. "n": "1963"
  656. }, {
  657. "v": "/year/1962",
  658. "n": "1962"
  659. }, {
  660. "v": "/year/1960",
  661. "n": "1960"
  662. }, {
  663. "v": "/year/1959",
  664. "n": "1959"
  665. }, {
  666. "v": "/year/1954",
  667. "n": "1954"
  668. }, {
  669. "v": "/year/1952",
  670. "n": "1952"
  671. }, {
  672. "v": "/year/1950",
  673. "n": "1950"
  674. }, {
  675. "v": "/year/1949",
  676. "n": "1949"
  677. }, {
  678. "v": "/year/1948",
  679. "n": "1948"
  680. }, {
  681. "v": "/year/1940",
  682. "n": "1940"
  683. }, {
  684. "v": "/year/1939",
  685. "n": "1939"
  686. }, {
  687. "v": "/year/1925",
  688. "n": "1925"
  689. }]
  690. }]
  691. },
  692. // searchUrl:'/search?q=**',
  693. searchUrl: '/page/fypage?s=**',
  694. searchable: 2, //是否启用全局搜索,
  695. quickSearch: 0, //是否启用快速搜索,
  696. headers: {
  697. 'User-Agent': 'UC_UA',
  698. },
  699. class_parse: '.navlist&&li;a&&Text;a&&href;.*/([^/]+)',
  700. play_parse: true,
  701. // lazy:'',
  702. proxy_rule: $js.toString(() => {
  703. if (input) {
  704. //console.log(url);
  705. var url = `http://dm.sds11.top/jsdm.php?id=` + input.url;
  706. var htt = fetch(url);
  707. input = [200, "text/xml", htt];
  708. }
  709. }),
  710. lazy: `js:
  711. pdfh = jsp.pdfh;
  712. var html = request(input);
  713. var ohtml = pdfh(html, '.videoplay&&Html');
  714. var url = pdfh(ohtml, "body&&iframe&&src");
  715. var title = pdfh(html, 'head&&title&&Text');
  716. var parts = title.split(' ');
  717. if (/Cloud/.test(url)) {
  718. var ifrwy = request(url);
  719. let code = ifrwy.match(/var url = '(.*?)'/)[1].split('').reverse().join('');
  720. let temp = '';
  721. for (let i = 0x0; i < code.length; i = i + 0x2) {
  722. temp += String.fromCharCode(parseInt(code[i] + code[i + 0x1], 0x10))
  723. }
  724. input = {
  725. jx: 0,
  726. url: temp.substring(0x0, (temp.length - 0x7) / 0x2) + temp.substring((temp.length - 0x7) / 0x2 + 0x7),
  727. parse: 0,
  728. danmaku:getProxyUrl()+ '&url=' + getYoukuVideoUrl(parts[0],parts[1])
  729. }
  730. } else if (/decrypted/.test(ohtml)) {
  731. var phtml = pdfh(ohtml, "body&&script:not([src])&&Html");
  732. eval(getCryptoJS());
  733. var scrpt = phtml.match(/var.*?\\)\\);/g)[0];
  734. var data = [];
  735. eval(scrpt.replace(/md5/g, 'CryptoJS').replace('eval', 'data = '));
  736. input = {
  737. jx: 0,
  738. url: data.match(/url:.*?[\\'\\"](.*?)[\\'\\"]/)[1],
  739. parse: 0,
  740. danmaku:getProxyUrl()+'&url='+ getYoukuVideoUrl(parts[0],parts[1])
  741. }
  742. } else {
  743. input = {
  744. jx: 0,
  745. url:input,
  746. parse: 1,
  747. danmaku:getProxyUrl()+ '&url=' + getYoukuVideoUrl(parts[0],parts[1])
  748. }
  749. }
  750. `,
  751. limit: 6,
  752. 推荐: '.leibox&&li;*;*;*;*',
  753. // double:true, // 推荐内容是否双层定位
  754. 一级: '.mrb&&li;img&&alt;img&&data-original;.jidi&&Text;a&&href',
  755. 二级: {
  756. 'title': 'h1&&Text;.moviedteail_list&&li:eq(0)&&Text',
  757. 'img': '.dyimg&&img&&src',
  758. 'desc': '.moviedteail_list&&li:eq(-1)&&Text;;;.moviedteail_list&&li:eq(7)&&Text;.moviedteail_list&&li:eq(5)&&Text',
  759. 'content': '.yp_context&&p&&Text',
  760. 'tabs': '',
  761. 'lists': '.paly_list_btn:eq(#id) a',
  762. },
  763. 搜索: '.search_list&&li;*;*;*;*',
  764. }
  765. globalThis.getYoukuVideoUrl = function(wd, flag) {
  766. try {
  767. let api = `https://search.youku.com/api/search?pg=1&keyword=${encodeURIComponent(wd)}`;
  768. let response = request(api);
  769. let json = JSON.parse(response);
  770. // 获取 showId
  771. let showId = json.pageComponentList?.[0]?.commonData?.showId;
  772. if (!showId) {
  773. throw new Error('ShowId not found.');
  774. }
  775. // 第二个 API 请求,获取集数信息
  776. api = `https://search.youku.com/api/search?appScene=show_episode&showIds=${showId}`;
  777. response = request(api);
  778. // 匹配 flag 中的 "第x集" 或 "第x话"
  779. json = JSON.parse(response);
  780. let matches = String(flag).match(/第\s*(\d+)\s*集/) ||
  781. String(flag).match(/第\s*(\d+)\s*话/) ||
  782. String(flag).match(/(\d+)/);
  783. let url = '';
  784. if (matches && matches[1]) {
  785. // 获取对应集数的 URL 或 videoId
  786. let episodeIndex = parseInt(matches[1], 10) - 1;
  787. url = json.serisesList?.[episodeIndex]?.url || json.serisesList?.[episodeIndex]?.videoId;
  788. }
  789. // 如果没有匹配到 flag,取第一个集数的 URL
  790. if (!url) {
  791. url = json.serisesList?.[0]?.url || json.serisesList?.[0]?.videoId;
  792. }
  793. // 如果 URL 不是以 http 开头,则拼接成完整的 Youku 视频地址
  794. if (url && !url.startsWith('http')) {
  795. url = `https://v.youku.com/v_show/id_${url}.html`;
  796. }
  797. return url || 'https://v.youku.com/';
  798. } catch {
  799. return 'https://v.youku.com/1111';
  800. }
  801. }