1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057 |
- /**
- * 影视TV 弹幕支持
- * https://t.me/fongmi_offical/
- * https://github.com/FongMi/Release/tree/main/apk
- * 皮皮虾DMBox 弹幕支持
- * 设置 > 窗口预览 > 开启
- * https://t.me/pipixiawerun
- * vod_area:'bilidanmu'
- * Cookie设置
- * Cookie获取方法 https://ghproxy.net/https://raw.githubusercontent.com/UndCover/PyramidStore/main/list.md
- * Cookie设置方法1: DR-PY 后台管理界面
- * CMS后台管理 > 设置中心 > 环境变量 > {"bili_cookie":"XXXXXXX","vmid":"XXXXXX"} > 保存
- * Cookie设置方法2: 手动替换Cookie
- * 底下代码 headers的
- * "Cookie":"$bili_cookie"
- * 手动替换为
- * "Cookie":"将获取的Cookie黏贴在这"
- */
- var rule = {
- title:'哔哩',
- host:'https://api.bilibili.com',
- homeUrl:'/x/web-interface/search/type?search_type=video&keyword=少儿早教&page=2',
- url:'/x/web-interface/search/type?search_type=videofyfilter',
- class_name:'儿歌&国学&故事会&儿童早教&儿童启蒙故事&儿童英语启蒙&儿童歌曲&儿童绘画&睡前故事&儿童动画&儿童音乐&儿童安全教育&贝瓦儿歌&悟空识字&宝宝巴士&儿歌多多&学而思&儿童舞蹈&成语故事&贝乐虎&儿童好声音',
- class_url:'儿歌&国学&故事会&儿童早教&儿童启蒙故事&儿童英语启蒙&儿童歌曲&儿童绘画&睡前故事&儿童动画&儿童音乐&儿童安全教育&贝瓦儿歌&悟空识字&宝宝巴士&儿歌多多&学而思&儿童舞蹈&成语故事&贝乐虎&儿童好声音',
- filterable: 1,
- filter_url: '&keyword={{fl.tid}}&page=fypage&duration={{fl.duration}}&order={{fl.order}}',
- filter_def:{
- 儿歌: {
- tid: '儿歌'
- },国学: {
- tid: '国学'
- },故事会: {
- tid: '故事会'
- },
- 儿童早教: {
- tid: '儿童早教'
- },
- 儿童启蒙故事: {
- tid: '儿童启蒙故事'
- },
- 儿童英语启蒙: {
- tid: '儿童英语启蒙'
- },
- 儿童歌曲: {
- tid: '儿童歌曲'
- },
- 儿童绘画: {
- tid: '儿童绘画'
- },
- 睡前故事: {
- tid: '睡前故事'
- },
- 儿童动画: {
- tid: '儿童动画'
- },
- 儿童音乐: {
- tid: '儿童音乐'
- },
- 儿童安全教育: {
- tid: '儿童安全教育'
- },
- 贝瓦儿歌: {
- tid: '贝瓦儿歌'
- },
-
- 悟空识字: {
- tid: '悟空识字'
- },
- 宝宝巴士: {
- tid: '宝宝巴士'
- },
-
- 儿歌多多: {
- tid: '儿歌多多'
- },
- 学而思: {
- tid: '学而思'
- }
- },
- filter: {
- "儿歌": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "国学": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "故事会": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "儿童早教": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
-
- "儿童启蒙故事": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
-
- "儿童英语启蒙": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "儿童歌曲": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "儿童绘画": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "睡前故事": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "儿童动画": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "儿童音乐": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "儿童安全教育": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "贝瓦儿歌": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "悟空识字": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "宝宝巴士": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "儿歌多多": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "学而思": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "儿童舞蹈": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
-
- "成语故事": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "贝乐虎": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }],
- "儿童好声音": [{
- "key": "order",
- "name": "排序",
- "value": [{
- "n": "综合排序",
- "v": "0"
- }, {
- "n": "最多点击",
- "v": "click"
- }, {
- "n": "最新发布",
- "v": "pubdate"
- }, {
- "n": "最多弹幕",
- "v": "dm"
- }, {
- "n": "最多收藏",
- "v": "stow"
- }]
- }, {
- "key": "duration",
- "name": "时长",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "60分钟以上",
- "v": "4"
- }, {
- "n": "30~60分钟",
- "v": "3"
- }, {
- "n": "10~30分钟",
- "v": "2"
- }, {
- "n": "10分钟以下",
- "v": "1"
- }]
- }]
- },
- detailUrl: '/x/web-interface/view?aid=fyid', //二级详情拼接链接(json格式用)
- searchUrl: '/x/web-interface/search/type?search_type=video&keyword=**&page=fypage',
- searchable: 2,
- quickSearch: 0,
- headers: {
- "User-Agent": "PC_UA",
- "Referer": "https://www.bilibili.com",
- "Cookie": "https://d.kstore.space/download/6296/cookie.txt"
- },
- timeout: 5000,
- limit: 8,
- play_parse: true,
- lazy: `js:
- let ids = input.split('_');
- let dan = 'https://api.bilibili.com/x/v1/dm/list.so?oid=' + ids[1];
- let result = {};
- let iurl = 'https://api.bilibili.com:443/x/player/playurl?avid=' + ids[0] + '&cid=' + ids[1] + '&qn=116';
- let html = request(iurl);
- let jRoot = JSON.parse(html);
- let jo = jRoot.data;
- let ja = jo.durl;
- let maxSize = -1;
- let position = -1;
- ja.forEach(function(tmpJo, i) {
- if (maxSize < Number(tmpJo.size)) {
- maxSize = Number(tmpJo.size);
- position = i
- }
- });
- let purl = '';
- if (ja.length > 0) {
- if (position === -1) {
- position = 0
- }
- purl = ja[position].url
- }
- result.parse = 0;
- result.playUrl = '';
- result.url = unescape(purl);
- result.header = {
- 'Referer': 'https://live.bilibili.com',
- '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'
- };
- result.contentType = 'video/x-flv';
- result.danmaku = dan;
- input = result
- `,
- double: false,
- 推荐: '*',
- // 一级:'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(""","\'");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}',
- 一级: `js:
- let html = request(input);
- function stripHtmlTag(src) {
- return src.replace(/<\\/?[^>]+(>|$)/g, '').replace(/&.{1,5};/g, '').replace(/\\s{2,}/g, ' ');
- }
- function turnDHM(duration) {
- let min = duration.split(':')[0];
- let sec = duration.split(':')[1];
- if (min == 0) {
- return sec + '秒'
- } else if (0 < min && min < 60) {
- return min + '分'
- } else if (60 <= min && min < 1440) {
- if (min % 60 == 0) {
- let h = min / 60;
- return h + '小时'
- } else {
- let h = min / 60;
- h = (h + '').split('.')[0];
- let m = min % 60;
- return h + '小时' + m + '分';
- }
- } else if (min >= 1440) {
- let d = min / 60 / 24;
- d = (d + '').split('.')[0];
- let h = min / 60 % 24;
- h = (h + '').split('.')[0];
- let m = min % 60;
- let dhm = '';
- if (d > 0) {
- dhm = d + '天'
- }
- if (h >= 1) {
- dhm = dhm + h + '小时'
- }
- if (m > 0) {
- dhm = dhm + m + '分'
- }
- return dhm
- }
- return null
- }
- let videos = [];
- let vodList = JSON.parse(html).data.result;
- vodList.forEach(function(vod) {
- let aid = vod.aid;
- let title = stripHtmlTag(vod.title);
- let img = 'https:' + vod.pic;
- let remark = turnDHM(vod.duration);
- videos.push({
- vod_id: aid,
- vod_name: title,
- vod_pic: img,
- vod_remarks: remark
- })
- });
- VODS = videos
- `,
- 二级: `js:
- function stripHtmlTag(src) {
- return src.replace(/<\\/?[^>]+(>|$)/g, '').replace(/&.{1,5};/g, '').replace(/\\s{2,}/g, ' ');
- }
- let html = request(input);
- let jo = JSON.parse(html).data;
- let aid = jo.aid;
- let title = stripHtmlTag(jo.title);
- let pic = jo.pic;
- let desc = jo.desc;
- let year = jo.pubdate;
- let dire = jo.owner.name;
- let typeName = jo.tname;
- let remark = jo.duration;
- let vod = {
- vod_id: aid,
- vod_name: title,
- vod_pic: pic,
- type_name: typeName,
- vod_year: year,
- vod_area: 'bilidanmu',
- vod_remarks: remark,
- vod_tags: 'mv',
- vod_director: dire,
- vod_content: desc
- };
- let ja = jo.pages;
- let playurls = [];
- ja.forEach(function(tmpJo) {
- let cid = tmpJo.cid;
- let part = tmpJo.part.replace('#', '﹟').replace('$', '﹩');
- playurls.push(
- part + '$' + aid + '_' + cid
- )
- });
- let playUrl = playurls.join('#');
- vod.vod_play_from = '肥猫在线';
- vod.vod_play_url = playUrl;
- VOD = vod;
- `,
- 搜索: '*',
- // 预处理:'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)',
- }
|