123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949 |
- /**
- * 影视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: '六年级数学'
- },
- 六年级英语: {
- tid: '六年级英语'
- }
- },
- filter: {
- "一年级语文": [{
- "key": "order",
- "name": "分类",
- "value": [{
- "n": "全部",
- "v": "0"
- }, {
- "n": "沪教版",
- "v": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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": "Shanghai teaching edition"
- }, {
- "n": "人教版",
- "v": "People's Education Press"
- }, {
- "n": "北师大版",
- "v": "the edition of Beijing Normal University"
- }, {
- "n": "苏教版",
- "v": "the edition of Jiangsu Education Press"
- }]
- }, {
- "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)',
- }
|