mirror of
https://github.com/ls125781003/tvboxtg.git
synced 2025-10-28 12:22:16 +00:00
Pending changes exported from your codespace
This commit is contained in:
10
肥猫/api.json
10
肥猫/api.json
@@ -35,10 +35,18 @@
|
||||
"site_urls": [
|
||||
"https://duopan.fun",
|
||||
"http://labipan.com",
|
||||
"http://feimaoai.site"
|
||||
"http://feimaoai.site",
|
||||
"https://mihdr.top"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "追剧",
|
||||
"name": "⭐|追更|专区",
|
||||
"type": 3,
|
||||
"api": "./api/9121b57512b75f996d3122a424b04355.js",
|
||||
"ext": "./txt/9d68d4ce43a3ec0cf97ed4633f979e15.txt"
|
||||
},
|
||||
{
|
||||
"key": "csp_SuBaiBai",
|
||||
"name": "🏳️┃素白┃影视",
|
||||
|
||||
115
肥猫/api/9121b57512b75f996d3122a424b04355.js
Normal file
115
肥猫/api/9121b57512b75f996d3122a424b04355.js
Normal file
@@ -0,0 +1,115 @@
|
||||
let sourceUrl = "";
|
||||
let sourceData = {};
|
||||
|
||||
function request(url) {
|
||||
const resp = req(url, {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36'
|
||||
}
|
||||
});
|
||||
return resp.content;
|
||||
}
|
||||
|
||||
function init(ext) {
|
||||
if (ext && ext.indexOf('http') == 0) {
|
||||
sourceUrl = ext;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function home(filter) {
|
||||
console.log('sourceUrl: ' + sourceUrl);
|
||||
if (sourceUrl.indexOf('http') < 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const classes = [];
|
||||
sourceData = {};
|
||||
|
||||
let className = '网盘分享⭐不怕墙';
|
||||
const text = request(sourceUrl);
|
||||
for (let line of text.split('\n')) {
|
||||
line = line.trim().replace(/[,\s$]+/g, ',');
|
||||
const position = line.indexOf(',');
|
||||
if (position < 0 && line.indexOf('##') == 0) {
|
||||
className = line.substring(2).trim();
|
||||
} else if (position > 1) {
|
||||
const name = line.substring(0, position).trim();
|
||||
let url = line.substring(position + 1).trim();
|
||||
|
||||
let panName = '';
|
||||
switch (url.split('://')[0]) {
|
||||
case 'ali':
|
||||
url = 'push://https://www.alipan.com/s/' + url.substring(6);
|
||||
panName = '阿里';
|
||||
break;
|
||||
case 'uc':
|
||||
url = 'push://https://drive.uc.cn/s/' + url.substring(5);
|
||||
panName = 'UC';
|
||||
break;
|
||||
case 'quark':
|
||||
url = 'push://https://pan.quark.cn/s/' + url.substring(8);
|
||||
panName = '夸克';
|
||||
break;
|
||||
case 'https':
|
||||
if (url.indexOf('alipan.com') > 0) {
|
||||
url = 'push://' + url;
|
||||
panName = '阿里';
|
||||
} else if (url.indexOf('uc.cn') > 0) {
|
||||
url = 'push://' + url;
|
||||
panName = 'UC';
|
||||
} else if (url.indexOf('quark.cn') > 0) {
|
||||
url = 'push://' + url;
|
||||
panName = '夸克';
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!(className in sourceData)) {
|
||||
classes.push({
|
||||
'type_id': className,
|
||||
'type_name': className,
|
||||
"type_flag": "1"
|
||||
});
|
||||
sourceData[className] = [];
|
||||
}
|
||||
|
||||
sourceData[className].push({
|
||||
'vod_id': url,
|
||||
'vod_name': name,
|
||||
'vod_pic': '',
|
||||
'vod_remarks': panName
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return JSON.stringify({
|
||||
'class': classes,
|
||||
'filters': null,
|
||||
'type_flag': '1'
|
||||
});
|
||||
}
|
||||
|
||||
function category(tid, pg, filter, extend) {
|
||||
return JSON.stringify({
|
||||
'page': 1,
|
||||
'pagecount': 1,
|
||||
'list': sourceData[tid],
|
||||
'type_des': ''
|
||||
});
|
||||
}
|
||||
|
||||
__JS_SPIDER__ = {
|
||||
init: init,
|
||||
home: home,
|
||||
homeVod: null,
|
||||
category: category,
|
||||
detail: null,
|
||||
play: null,
|
||||
search: null
|
||||
};
|
||||
BIN
肥猫/spider.jar
BIN
肥猫/spider.jar
Binary file not shown.
41
肥猫/txt/9d68d4ce43a3ec0cf97ed4633f979e15.txt
Normal file
41
肥猫/txt/9d68d4ce43a3ec0cf97ed4633f979e15.txt
Normal file
@@ -0,0 +1,41 @@
|
||||
————☞追电视☜————$https://pan.quark.cn/s/607b862dc65b
|
||||
|
||||
小巷人家$https://pan.quark.cn/s/38a4e745064e
|
||||
好团圆$https://pan.quark.cn/s/ce1c79f40f13
|
||||
大梦归离$https://pan.quark.cn/s/dfa142d94597
|
||||
黑白诀$https://pan.quark.cn/s/41a918e11833
|
||||
春花焰$https://pan.quark.cn/s/0c5f6295abb1
|
||||
巾帼枭雄之悬崖$https://pan.quark.cn/s/261e4d677572
|
||||
锦绣安宁$https://pan.quark.cn/s/9b777fdffc39
|
||||
上甘岭$https://pan.quark.cn/s/0a28f0088abd
|
||||
你的谎言也动听$https://pan.quark.cn/s/e623bd606f51
|
||||
双重任务$https://pan.quark.cn/s/63b9f3c3ee30
|
||||
人民警察$https://pan.quark.cn/s/ee3b1d22b72a
|
||||
|
||||
|
||||
————☞追电影☜————$https://pan.quark.cn/s/607b862dc65b
|
||||
|
||||
祝你幸福$https://pan.quark.cn/s/2d011177b807
|
||||
黄飞鸿之铁血十三姨$https://pan.quark.cn/s/6d8cc4186fdc
|
||||
守龙者$https://pan.quark.cn/s/a9bbca2dc8f8
|
||||
保镖$https://pan.quark.cn/s/35fa3497605
|
||||
盐湖计划$https://pan.quark.cn/s/577e52ad338e
|
||||
黑雀特工$https://pan.quark.cn/s/d7944d68b9f6
|
||||
|
||||
|
||||
————☞追动漫☜————$https://pan.quark.cn/s/607b862dc65b
|
||||
|
||||
吞噬星空$https://pan.quark.cn/s/15a8179fc3e7
|
||||
仙逆$https://pan.quark.cn/s/7108db0dad09
|
||||
斗破苍穹年番$https://pan.quark.cn/s/9dd0f558dcc8
|
||||
斗罗大陆Ⅱ绝世唐门$https://pan.quark.cn/s/5c03b1d38996
|
||||
剑来$https://pan.quark.cn/s/8bf450574443
|
||||
徒弟个个是大佬$https://pan.quark.cn/s/3428e6ee6412
|
||||
牧神记$https://pan.quark.cn/s/a69e69e2b226
|
||||
我能无限顿悟$https://pan.quark.cn/s/289d255a7444
|
||||
虎鹤妖师录$https://pan.quark.cn/s/deadd1b4d56e
|
||||
神武天尊$https://pan.quark.cn/s/a387ed805ac9
|
||||
神墓$https://pan.quark.cn/s/91108f4cdb27
|
||||
我的微信通龙宫$https://pan.quark.cn/s/a053897bd4eb
|
||||
都市古仙医$https://pan.quark.cn/s/6d28d906721b
|
||||
仙武传$https://pan.quark.cn/s/fa78e1efced8
|
||||
Reference in New Issue
Block a user