This commit is contained in:
leevi 2025-07-19 23:23:26 +08:00
parent 7b4630369d
commit 9cc0397989
3 changed files with 160 additions and 0 deletions

110
JS/星芽短剧.js Normal file
View File

@ -0,0 +1,110 @@
globalThis.getHeaders = function () {
let tkurl = 'https://xvapp.xingya.com.cn/v1/account/login';
let opt = {
headers: {
'user-agent': 'okhttp/4.10.0',
'user_agent': 'Mozilla/5.0 (Linux; Android 13; PEQM00 Build/TP1A.220905.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.129 Mobile Safari/537.36',
'Host': 'xvapp.xingya.com.cn',
'Connection': 'keep-alive',
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': '40',
'Accept-Encoding': 'gzip'
},
method: 'POST',
body: 'device=2cdbf9265f4d63b82a30735793127c962'
};
let tk = JSON.parse(request(tkurl,opt)).data.token;
let kheader = {
'User-Agent': 'Mozilla/5.0 (Linux; Android 13; PEQM00 Build/TP1A.220905.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.129 Mobile Safari/537.36',
'authorization': tk,
'Content-Type': 'application/json; charset=UTF-8'
};
return kheader
}
var rule = {
author: '小可乐/2410/第一版',
title: '星芽短剧',
类型: '影视',
host: 'https://xvapp.xingya.com.cn',
hostJs: '',
headers: {'User-Agent': 'okhttp/4.10.0'},
编码: 'utf-8',
timeout: 5000,
homeUrl: '/cloud/v2/theater/home_page?theater_class_id=1&type=1&class2_ids=0&page_num=1&page_size=24',
url: '/cloud/v2/theater/home_page?theater_class_id=fyclass&type=1&fyfilter&page_num=fypage&page_size=24',
filter_url: '{{fl.class}}',
detailUrl: '',
searchUrl: '/v3/search',
searchable: 1,
quickSearch: 1,
filterable: 1,
class_name: '剧场&热播剧&新剧&星选好剧&阳光剧场',
class_url: '1&2&3&7&5',
filter_def: {},
play_parse: true,
lazy: `js:
if (/\\.(m3u8|mp4)/.test(input)) {
input = { jx: 0, parse: 0, url: input }
} else {
input = { jx: 0, parse: 1, url: input }
}`,
limit: 9,
double: false,
推荐: '*',
一级: `js:
input = input.replace(/&{2,}/g,'&');
let kjson = JSON.parse(request(input, {headers: getHeaders()}));
VODS = [];
let klists = kjson.data.list;
klists.forEach((it) => {
VODS.push({
vod_name: it.theater.title,
vod_pic: it.theater.cover_url,
vod_remarks: it.theater.total + '集' + '|' + it.theater.theme,
vod_id: 'https://xvapp.xingya.com.cn/v2/theater_parent/detail?theater_parent_id=' + it.theater.id
})
})
`,
二级: `js:
let kjson = JSON.parse(request(input, {headers: getHeaders()}));
let kplist = kjson.data.theaters.map((it) => { return it.num + '$' + it.son_video_url });
VOD = {
vod_id: input,
vod_name: kjson.data.title,
vod_pic: kjson.data.cover_url,
type_name: kjson.data.desc_tags.join('|'),
vod_remarks: kjson.data.total + '集',
vod_year: '未知',
vod_area: '未知',
vod_director: '星芽短剧',
vod_actor: kjson.data.filing,
vod_content: kjson.data.introduction,
vod_play_from: '星芽',
vod_play_url: kplist.join('#')
}
`,
搜索: `js:
let kjson = JSON.parse(request(input, {headers: getHeaders(), method: 'POST', body: {'text': KEY} }));
VODS = [];
let klists = kjson.data.theater.search_data;
klists.forEach((it) => {
VODS.push({
vod_name: it.title,
vod_pic: it.cover_url,
vod_remarks: it.total + '集' + '|' + it.score_str,
vod_id: 'https://xvapp.xingya.com.cn/v2/theater_parent/detail?theater_parent_id=' + it.id
})
})
`,
filter: {
"1":[
{"key":"class","name":"剧情","value":[{"n":"全部","v":"class2_ids=0"},{"n":"都市","v":"class2_ids=4"},{"n":"古装","v":"class2_ids=5"},{"n":"现代言情","v":"class2_ids=15"},{"n":"战神","v":"class2_ids=24"},{"n":"逆袭","v":"class2_ids=7"},{"n":"穿越","v":"class2_ids=17"},{"n":"历史","v":"class2_ids=40"},{"n":"赘婿","v":"class2_ids=26"},{"n":"神医","v":"class2_ids=25"},{"n":"重生","v":"class2_ids=6"},{"n":"甜宠","v":"class2_ids=33"},{"n":"古代言情","v":"class2_ids=37"},{"n":"玄幻","v":"class2_ids=35"},{"n":"萌宝","v":"class2_ids=9"},{"n":"脑洞","v":"class2_ids=32"},{"n":"亲情","v":"class2_ids=41"},{"n":"虐恋","v":"class2_ids=8"}]}
]
}
}

28
JS/红果短剧.js Normal file
View File

@ -0,0 +1,28 @@
var rule = {
title: '红果短剧',
host: 'https://www.hongguodj.cc/',
url: '/show/fyclass--------fypage---.html',
searchUrl: '/search/**----------fypage---.html',
class_parse: '.nav li;a&&Text;a&&href;.*/(.*?).html',
searchable: 2,
quickSearch: 0,
filterable: 0,
headers: {
'User-Agent': 'MOBILE_UA',
},
play_parse: true,
lazy: "js:\n let html = request(input);\n let hconf = html.match(/r player_.*?=(.*?)</)[1];\n let json = JSON5.parse(hconf);\n let url = json.url;\n if (json.encrypt == '1') {\n url = unescape(url);\n } else if (json.encrypt == '2') {\n url = unescape(base64Decode(url));\n }\n if (/\\.(m3u8|mp4|m4a|mp3)/.test(url)) {\n input = {\n parse: 0,\n jx: 0,\n url: url,\n };\n } else {\n input = url && url.startsWith('http') && tellIsJx(url) ? {parse:0,jx:1,url:url}:input;\n }",
limit: 6,
double: true,
推荐: '.show&&ul;li;img&&alt;img&&data-src;.bg&&Text;a&&href',
一级: '.list li;img&&alt;img&&data-src;.bg&&Text;a&&href',
二级: {
title: 'h2&&Text;.info p:eq(2)&&a&&Text',
img: 'img&&src',
desc: '.info p:eq(2)&&a&&Text;.info p:eq(3)&&a&&Text;.info p:eq(4)&&a&&Text;.info p:eq(0)&&a&&Text;.info p:eq(1)&&a&&Text',
content: '#desc&&Text',
tabs: '.play.my-2 .title&&a',
lists: '.play-list:eq(#id)&&.rows li',
},
搜索: '.show.rows li;img&&alt;img&&data-src;.bg&&Text;a&&href',
}

View File

@ -151,6 +151,17 @@
"site": "https://tv.yydsys.top,https://tv.yydsys.cc,https://tv.214521.xyz"
}
},
{
"key": "星芽",
"name": "🌟┃星芽┃短剧",
"type": 3,
"api": "./js/drpy2.min.js",
"searchable": 1,
"quickSearch": 1,
"changeable": 1,
"filterable": 1,
"ext": "./js/星芽短剧.js"
},
{
"key": "追剧",
"name": "☕️┃追剧┃秒播",
@ -730,6 +741,17 @@
"searchable": 1,
"changeable": 1
},
{
"key": "红果",
"name": "🍎┃红果┃短剧",
"type": 3,
"api": "./js/drpy2.min.js",
"searchable": 1,
"quickSearch": 1,
"changeable": 1,
"filterable": 1,
"ext": "./js/红果短剧.js"
},
{
"key": "南风短剧",
"name": "☢️┃南风┃短剧",