tvbox/js/爱弹幕.js

33 lines
1.7 KiB
JavaScript
Raw Normal View History

2022-12-31 20:05:11 +08:00
var rule = {
title: '爱弹幕',
host: 'https://www.girigirilove.com',
class_name:'日番&美番&特摄&剧场&真人&4k&番剧导视',
class_url:'2&3&4&21&20&22&24',
homeUrl: '',
searchUrl: '/index.php/ajax/suggest?mid=1&wd=**',
searchable: 2,
quickSearch: 0,
headers:{'User-Agent':'MOBILE_UA'},
// 分类链接fypage参数支持1个()表达式
// url: '/index.php/api/vod#type=fyclass&page=fypage',
url: '/index.php/api/vod#type=fyclass&page=fypage',
filterable:0,//是否启用分类筛选,
filter_url:'',
filter: {},
filter_def:{},
detailUrl:'/voddetail/fyid/',
图片来源:'@Referer=https://www.girigirilove.com/',
推荐:'.list-vod.flex.wrap.border-box.public-r.hide-a-21 .public-list-box;a&&title;.lazy&&data-original;.public-list-prb&&Text;a&&href',
一级:'',
一级:'js:let body=input.split("#")[1];let t=Math.round(new Date/1e3).toString();let key=md5("DS"+t+"DCC147D11943AF75");let url=input.split("#")[0];body=body+"&time="+t+"&key="+key;print(body);fetch_params.body=body;let html=post(url,fetch_params);let data=JSON.parse(html);VODS=data.list.map(function(it){it.vod_pic=urljoin2(input.split("/i")[0],it.vod_pic);return it});',
二级:{
"title":".slide-info-title&&Text;.slide-info:eq(3)--strong&&Text",
"img":"body&&.wow.fadeInLeft;a&&data-original",
"desc":".fraction&&Text;.slide-info-remarks:eq(1)&&Text;.slide-info-remarks:eq(2)&&Text;.slide-info:eq(2)--strong&&Text;.slide-info:eq(1)--strong&&Text",
"content":"#height_limit&&Text",
"tabs":".anthology.wow.fadeInUp.animated&&.swiper-wrapper&&a",
"tab_text":".swiper-slide&&Text",
"lists":".anthology-list-box:eq(#id)&&.anthology-list-play&&li"
},
搜索:'json:list;name;pic;;id',
}