mirror of
https://github.com/ls125781003/tvboxtg.git
synced 2025-10-28 04:12:19 +00:00
Pending changes exported from your codespace
This commit is contained in:
21
小米/api.json
21
小米/api.json
@@ -108,7 +108,19 @@
|
||||
"filterable": 1,
|
||||
"order_num": 0,
|
||||
"changeable": 0,
|
||||
"ext": "./js/ttt1.js"
|
||||
"ext": "./js/tx.js"
|
||||
},
|
||||
{
|
||||
"key": "guoguo",
|
||||
"name": "🌞果果┃解析",
|
||||
"type": 3,
|
||||
"api": "./api/drpy2.min.js",
|
||||
"searchable": 1,
|
||||
"quickSearch": 1,
|
||||
"filterable": 1,
|
||||
"order_num": 0,
|
||||
"changeable": 0,
|
||||
"ext": "./js/guoguo.js"
|
||||
},
|
||||
{
|
||||
"key": "csp_NanGua",
|
||||
@@ -283,11 +295,12 @@
|
||||
"链接": "https://www.hkybqufgh.com/detail/+vodId\":&&,",
|
||||
"导演": "导演:</div>&&主演",
|
||||
"主演": "主演:</div>&&别名",
|
||||
"线路标题": "文采",
|
||||
"线路标题": "小米文采",
|
||||
"播放数组": "listitem\">&&info\">",
|
||||
"播放列表": "<a&&</a>",
|
||||
"倒序": "否",
|
||||
"搜索url": "https://www.hkybqufgh.com/vod/search/{wd}",
|
||||
"搜索副标题": "class=\"boottom\"*<div>&&</div",
|
||||
"分类": "电影$1#电视剧$2#综艺$3#动漫$4",
|
||||
"分类url": "https://www.hkybqufgh.com/vod/show/id/{cateId}/class/{class}/year/{year}/area/{area}/page/{catePg}"
|
||||
}
|
||||
@@ -400,7 +413,7 @@
|
||||
{
|
||||
"name": "4K解析",
|
||||
"type": 1,
|
||||
"url": "http://43.242.202.173:25253/x.php?url=",
|
||||
"url": "http://www.mpanso.com/%E6%88%91%E7%88%B1%E4%BD%A0.php?url=",
|
||||
"ext": {
|
||||
"flag": [
|
||||
"qq",
|
||||
@@ -429,7 +442,7 @@
|
||||
{
|
||||
"name": "1080解析",
|
||||
"type": 1,
|
||||
"url": "https://cdn.suxun.site/api/?key=7QeqS18ZCrJgj0BSOn&url=",
|
||||
"url": "https://jf.lemiaoyun.cn/api/?key=bc1e1c72813140c311929a461d167707&url=",
|
||||
"ext": {
|
||||
"flag": [
|
||||
"qq",
|
||||
|
||||
209
小米/js/guoguo.js
Normal file
209
小米/js/guoguo.js
Normal file
@@ -0,0 +1,209 @@
|
||||
var rule = {
|
||||
title: '百忙无果[官]',
|
||||
host: 'https://pianku.api.%6d%67%74%76.com',
|
||||
homeUrl: '',
|
||||
searchUrl: 'https://mobileso.bz.%6d%67%74%76.com/pc/search/v1?q=**&pn=fypage&pc=10',
|
||||
detailUrl: 'https://pcweb.api.mgtv.com/episode/list?page=1&size=50&video_id=fyid',
|
||||
searchable: 2,
|
||||
quickSearch: 0,
|
||||
filterable: 1,
|
||||
multi: 1,
|
||||
// 分类链接fypage参数支持1个()表达式
|
||||
// https://www.mgtv.com/lib/3?lastp=list_index&kind=a1&year=all&chargeInfo=a1&sort=c2
|
||||
url: '/rider/list/pcweb/v3?platform=pcweb&channelId=fyclass&pn=fypage&pc=80&hudong=1&_support=10000000&kind=a1&area=a1',
|
||||
filter_url: 'year={{fl.year or "all"}}&sort={{fl.sort or "all"}}&chargeInfo={{fl.chargeInfo or "all"}}',
|
||||
headers: {
|
||||
'User-Agent': 'PC_UA'
|
||||
|
||||
},
|
||||
timeout: 5000,
|
||||
class_name: '电视剧&电影&综艺&动漫&纪录片&教育&少儿',
|
||||
class_url: '2&3&1&50&51&115&10',
|
||||
filter: 'H4sIAAAAAAAAA+2XvUrDUBSA3+XOHc65adraN+jm5CIdYok/GFupWiilIBalIFYoIh1EBxEKIih0MOZ1msS+hbc1yTni4mKms6XfIbnnC/mG9hSq6mZP7btdVVWNXae949aa2y1VUE3nwDVsHkw+Z378FoT3l4Z2HO/EXd3SNMPwfLoYTJfY/HA8T/UL6eDK3JUMtjDjnb3DFOoMbtTW45tpOHxPR1Y2Sk4/86PxSzotqn59Of/e+ajVPqZto9E4/Lj+tWd0dxrdviYPaNA6hseD9MEN2ih+eJr7o8XzJBxepNOfx3Zdp03Hhv5sHjz+/fVo0MUEry4Zt4hbnGvimnMkjpwDcWAc1zJuLhmvEK9wXiZe5rxEvMS5TdzmnHyR+yL5IvdF8kXui+SL3BfJF7kvkC9wXyBf4L5AvsB9gXyB+wL5AvcF8oXVl1MvKC2pSWqSWh6pWZKapCap5ZGaDdKatCat5dKa/FuT1qS1XFpD80YkNolNYvv32PpfCLkneIcUAAA=',
|
||||
limit: 20,
|
||||
play_parse: true,
|
||||
lazy: $js.toString(() => {
|
||||
let d = [];
|
||||
|
||||
try {
|
||||
// 发起请求并获取响应,添加请求头
|
||||
let headers = {
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36'
|
||||
|
||||
};
|
||||
let responseText = request("http://39.104.230.177:1122/lxjx/myyk.php?url=" + input, { headers: headers });
|
||||
console.log("响应文本:", responseText); // 查看原始响应内容
|
||||
|
||||
// 解析 JSON 数据
|
||||
let response = JSON.parse(responseText);
|
||||
|
||||
// 查找以 'url' 开头的字段
|
||||
let urlField = Object.keys(response).find(key => key.startsWith('url'));
|
||||
|
||||
// 提取找到的字段值
|
||||
let urlValue = urlField ? response[urlField] : null;
|
||||
|
||||
console.log("提取的随机字段值:", urlValue); // 查看提取的值
|
||||
|
||||
if (urlValue) {
|
||||
// 处理 urlValue,或将其用于 input
|
||||
input = {
|
||||
url: urlValue,
|
||||
parse: 0,
|
||||
header: rule.headers
|
||||
};
|
||||
} else {
|
||||
// 处理没有找到字段的情况
|
||||
console.error("没有找到以 'url' 开头的字段");
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("处理请求或数据时发生错误:", error);
|
||||
}
|
||||
|
||||
setResult(d);
|
||||
}),
|
||||
// 手动调用解析请求json的url,此lazy不方便
|
||||
// lazy:'js:print(input);fetch_params.headers["user-agent"]=MOBILE_UA;let html=request(input);let rurl=html.match(/window\\.open\\(\'(.*?)\',/)[1];rurl=urlDeal(rurl);input={parse:1,url:rurl};',
|
||||
// 推荐:'.list_item;img&&alt;img&&src;a&&Text;a&&data-float',
|
||||
一级: 'json:data.hitDocs;title;img;updateInfo||rightCorner.text;playPartId',
|
||||
// 一级:'json:data.hitDocs;title;img;updateInfo;playPartId',
|
||||
二级: $js.toString(() => {
|
||||
fetch_params.headers.Referer = "https://www.mgtv.com";
|
||||
fetch_params.headers["User-Agent"] = UA;
|
||||
pdfh = jsp.pdfh;
|
||||
pdfa = jsp.pdfa;
|
||||
pd = jsp.pd;
|
||||
VOD = {};
|
||||
let d = [];
|
||||
let html = request(input);
|
||||
let json = JSON.parse(html);
|
||||
let host = "https://www.mgtv.com";
|
||||
let ourl = json.data.list.length > 0 ? json.data.list[0].url : json.data.series[0].url;
|
||||
if (!/^http/.test(ourl)) {
|
||||
ourl = host + ourl
|
||||
}
|
||||
fetch_params.headers["User-Agent"] = MOBILE_UA;
|
||||
html = request(ourl);
|
||||
if (html.includes("window.location =")) {
|
||||
print("开始获取ourl");
|
||||
ourl = pdfh(html, "meta[http-equiv=refresh]&&content").split("url=")[1];
|
||||
print("获取到ourl:" + ourl);
|
||||
html = request(ourl)
|
||||
}
|
||||
try {
|
||||
let details = pdfh(html, ".m-details&&Html").replace(/h1>/, "h6>").replace(/div/g, "br");
|
||||
print(details);
|
||||
let actor = "",
|
||||
director = "",
|
||||
time = "";
|
||||
if (/播出时间/.test(details)) {
|
||||
actor = pdfh(html, "p:eq(5)&&Text").substr(0, 25);
|
||||
director = pdfh(html, "p:eq(4)&&Text");
|
||||
time = pdfh(html, "p:eq(3)&&Text")
|
||||
} else {
|
||||
actor = pdfh(html, "p:eq(4)&&Text").substr(0, 25);
|
||||
director = pdfh(html, "p:eq(3)&&Text");
|
||||
time = "已完结"
|
||||
}
|
||||
let _img = pd(html, ".video-img&&img&&src");
|
||||
let JJ = pdfh(html, ".desc&&Text").split("简介:")[1];
|
||||
let _desc = time;
|
||||
VOD.vod_name = pdfh(html, ".vt-txt&&Text");
|
||||
VOD.type_name = pdfh(html, "p:eq(0)&&Text").substr(0, 6);
|
||||
VOD.vod_area = pdfh(html, "p:eq(1)&&Text");
|
||||
VOD.vod_actor = actor;
|
||||
VOD.vod_director = director;
|
||||
VOD.vod_remarks = _desc;
|
||||
VOD.vod_pic = _img;
|
||||
VOD.vod_content = JJ;
|
||||
if (!VOD.vod_name) {
|
||||
VOD.vod_name = VOD.type_name;
|
||||
}
|
||||
} catch (e) {
|
||||
log("获取影片信息发生错误:" + e.message)
|
||||
}
|
||||
|
||||
function getRjpg(imgUrl, xs) {
|
||||
xs = xs || 3;
|
||||
let picSize = /jpg_/.test(imgUrl) ? imgUrl.split("jpg_")[1].split(".")[0] : false;
|
||||
let rjpg = false;
|
||||
if (picSize) {
|
||||
let a = parseInt(picSize.split("x")[0]) * xs;
|
||||
let b = parseInt(picSize.split("x")[1]) * xs;
|
||||
rjpg = a + "x" + b + ".jpg"
|
||||
}
|
||||
let img = /jpg_/.test(imgUrl) && rjpg ? imgUrl.replace(imgUrl.split("jpg_")[1], rjpg) : imgUrl;
|
||||
return img
|
||||
}
|
||||
|
||||
if (json.data.total === 1 && json.data.list.length === 1) {
|
||||
let data = json.data.list[0];
|
||||
let url = "https://www.mgtv.com" + data.url;
|
||||
d.push({
|
||||
title: data.t4,
|
||||
desc: data.t2,
|
||||
pic_url: getRjpg(data.img),
|
||||
url: url
|
||||
})
|
||||
} else if (json.data.list.length > 1) {
|
||||
for (let i = 1; i <= json.data.total_page; i++) {
|
||||
if (i > 1) {
|
||||
json = JSON.parse(fetch(input.replace("page=1", "page=" + i), {}))
|
||||
}
|
||||
json.data.list.forEach(function (data) {
|
||||
let url = "https://www.mgtv.com" + data.url;
|
||||
if (data.isIntact == "1") {
|
||||
d.push({
|
||||
title: data.t4,
|
||||
desc: data.t2,
|
||||
pic_url: getRjpg(data.img),
|
||||
url: url
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
print(input + "暂无片源")
|
||||
}
|
||||
VOD.vod_play_from = "mgtv";
|
||||
VOD.vod_play_url = d.map(function (it) {
|
||||
return it.title + "$" + it.url
|
||||
}).join("#");
|
||||
setResult(d);
|
||||
}),
|
||||
|
||||
搜索: $js.toString(() => {
|
||||
fetch_params.headers.Referer = "https://www.mgtv.com";
|
||||
fetch_params.headers["User-Agent"] = UA;
|
||||
let d = [];
|
||||
let html = request(input);
|
||||
let json = JSON.parse(html);
|
||||
json.data.contents.forEach(function (data) {
|
||||
if (data.data.sourceList || data.data.yearList) {
|
||||
let list = data.data.sourceList ? data.data.sourceList : data.data.yearList[0].sourceList;
|
||||
let desc = "";
|
||||
list.forEach(function (it) {
|
||||
desc += it.name + "\t"
|
||||
});
|
||||
let fyclass = '';
|
||||
if (list[0].source === "imgo") {
|
||||
let img = data.data.pic ? data.data.pic : data.data.yearList[0].pic;
|
||||
try {
|
||||
fyclass = data.data.desc.find(it => it.label === '类型').url.match(/lib\/(\d+)/)[1] + '$';
|
||||
} catch (e) {
|
||||
fyclass = '';
|
||||
}
|
||||
log(fyclass);
|
||||
d.push({
|
||||
title: data.data.title ? data.data.title : data.data.yearList[0].title,
|
||||
img: img,
|
||||
content: data.data.story ? data.data.story : data.data.yearList[0].story,
|
||||
desc: data.data.playTime,
|
||||
url: fyclass + list[0].vid
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
setResult(d);
|
||||
}),
|
||||
}
|
||||
@@ -16,7 +16,7 @@ var rule = {
|
||||
// filter: 'H4sIAAAAAAAAA+2UzUrDQBCA32XOEZLUJrGvIj0saaDBNisxBkIJCG3Fi4oepIg3EQoieqiH+vM23Zq+hRuaZLZ4ce9z2/lmd2d2+NgR+H0e+gF0DkdwFGTQgRMeJ2BAxIaSwvrqVnxcyzhlg9PttqjED2c/45cSy8DyIDcavr57q/lBw8XTd/E6qbnT8M3zTFyc72RtC/Jumd+2c8wy7KZ4nxSL5Z9uxHS+Gc+r83sWVp1eVttl4Dluk1h93YubWZVwduplAY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kwMSX2KjQVrGnMoamPKDLQfVqDh5gjjcpF6Xtyi6tU02uhMAyS+8Mw0DbUv8+WzZWknJW5rI7CiSjWWSrP93Pt0hd00OlyOHidDko/78GUJbAqaG7+brtP4M6Yvtk8zH3pmh9JlUeNugnlz7ArC3T0Tkw51xERGJFfqTAnVa87T6T8+WeAZ95FNccnxoMAAwWBIcHAEY7FY9DDUbJbO+KK+zybJg1TmjtCvmUXg83J+CEWk5FI1ooUkdxyltkFdxmj/rOU6jozelIJGNpru1FmpAQ+D37dH7PE4qsvPe7btyftuE5ezknPgriXTvPPidy/H7ELlmd6yTHeEO0wPqH/52C2DoHzvZsqtHdvqAZE5lBiYrGbNZoAWDFnmPBS6uQv/VzT1mjDV/KsWPjV5n9113mwZ8r2V+fSuVIJsQNJ+WjRZmAX5/YBpLUiLYrIVJBvxon+yw2SEPGpYDmLX4dUDzgG5npEyKbwPQnrGepDAP2/09NvcvaIIuCAgUAAA=',
|
||||
headers: {
|
||||
'User-Agent': 'okhttp/4.12.0'
|
||||
'User-Agent': 'PC_UA'
|
||||
},
|
||||
timeout: 5000,
|
||||
// class_parse:'.site_channel a;a&&Text;a&&href;channel/(.*)',
|
||||
@@ -27,37 +27,46 @@ var rule = {
|
||||
class_url: 'choice&movie&tv&variety&cartoon&child&doco',
|
||||
limit: 20,
|
||||
play_parse:true,
|
||||
// play_parse:true,
|
||||
lazy: $js.toString(() => {
|
||||
let d = [];
|
||||
|
||||
// 发起请求并解析返回的 JSON 数据
|
||||
let response = JSON.parse(request("http://1.xiaomi666.work.gd/aini1.php?url=" + input));
|
||||
|
||||
// 获取所有字段名
|
||||
let keys = Object.keys(response);
|
||||
|
||||
// 查找以 'url' 开头的字段名
|
||||
let urlKey = keys.find(key => key.startsWith('url'));
|
||||
|
||||
// 提取对应的值
|
||||
let url = urlKey ? response[urlKey] : null;
|
||||
|
||||
if (url) {
|
||||
// 处理 url,或将其用于 input
|
||||
input = {
|
||||
url: url,
|
||||
parse: 0,
|
||||
header: rule.headers
|
||||
};
|
||||
// play_parse:true,
|
||||
lazy: $js.toString(() => {
|
||||
let d = [];
|
||||
|
||||
try {
|
||||
// 发起请求并获取响应,添加请求头
|
||||
let headers = {
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36' // 替换为您的 User-Agent 字符串
|
||||
};
|
||||
let responseText = request("http://39.104.230.177:1122/lxjx/mivip.php?url=" + input, { headers: headers });
|
||||
console.log("响应文本:", responseText); // 查看原始响应内容
|
||||
|
||||
// 解析 JSON 数据
|
||||
let response = JSON.parse(responseText);
|
||||
|
||||
// 查找以 'url' 开头的字段
|
||||
let urlField = Object.keys(response).find(key => key.startsWith('url'));
|
||||
|
||||
// 提取找到的字段值
|
||||
let urlValue = urlField ? response[urlField] : null;
|
||||
|
||||
console.log("提取的随机字段值:", urlValue); // 查看提取的值
|
||||
|
||||
if (urlValue) {
|
||||
// 处理 urlValue,或将其用于 input
|
||||
input = {
|
||||
url: urlValue,
|
||||
parse: 0,
|
||||
header: rule.headers
|
||||
};
|
||||
} else {
|
||||
// 处理没有找到 url 字段的情况
|
||||
console.error("没有找到以 'url' 开头的字段");
|
||||
// 处理没有找到字段的情况
|
||||
console.error("没有找到以 'url' 开头的字段");
|
||||
}
|
||||
|
||||
setResult(d);
|
||||
} catch (error) {
|
||||
console.error("处理请求或数据时发生错误:", error);
|
||||
}
|
||||
|
||||
setResult(d);
|
||||
}),
|
||||
|
||||
|
||||
推荐: '.list_item;img&&alt;img&&src;a&&Text;a&&data-float',
|
||||
一级: '.list_item;img&&alt;img&&src;a&&Text;a&&data-float',
|
||||
4509
小米/lives/直播.txt
4509
小米/lives/直播.txt
File diff suppressed because it is too large
Load Diff
1086
小米/lives/直播2.txt
1086
小米/lives/直播2.txt
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user