mirror of
https://github.com/qist/tvbox.git
synced 2025-01-24 03:04:56 +08:00
update UP
This commit is contained in:
parent
6106737c7e
commit
d2d5423049
3
cat.json
3
cat.json
@ -9,6 +9,9 @@
|
||||
{"key":"miku_open","name":"影视 | 咪咕","type":3,"api":"./cat/js/miku_open.js"},
|
||||
{"key":"yzys","name":"影视 | 柚子","type":3,"api":"./cat/js/yzys.js"},
|
||||
{"key":"yrzj","name":"影视 | 伊人","type":3,"api":"./cat/js/yrzj.js"},
|
||||
{"key":"tutu_open","name":"影视 | 图图","type":3,"api":"./cat/js/tutu_open.js"},
|
||||
{"key":"jojo_open","name":"影视 | jojo","type":3,"api":"./cat/js/jojo_open.js"},
|
||||
{"key":"jiohub","name":"影视 | jiohub","type":3,"api":"./cat/js/jiohub.js"},
|
||||
{"key":"kunyu77","name":"影视 | 七七1","type":3,"api":"./cat/js/kunyu77_open.js"},
|
||||
{"key":"kunyu77_yz","name":"影视 | 七七2","type":3,"api":"./cat/js/kunyu77.js"},
|
||||
{"key":"czzy","name":"影视 | 厂长","type":3,"api":"./cat/js/czzy_open.js"},
|
||||
|
@ -8,9 +8,10 @@
|
||||
{"key":"yzys_open","name":"影视 | 柚子","type":3,"api":"assets://js/yzys_open.js"},
|
||||
{"key":"sssp_open","name":"影视 | 速搜","type":3,"api":"assets://js/sssp_open.js"},
|
||||
{"key":"bulei_open","name":"影视 | 布雷","type":3,"api":"assets://js/bulei_open.js"},
|
||||
{"key":"miku_open","name":"影视 | 咪咕","type":3,"api":"assets://js/miku_open"},
|
||||
{"key":"tutu_open","name":"影视 | 图图","type":3,"api":"assets://js/tutu_open"},
|
||||
{"key":"jojo_open","name":"影视 | jojo","type":3,"api":"assets://js/jojo_open"},
|
||||
{"key":"miku_open","name":"影视 | 咪咕","type":3,"api":"assets://js/miku_open.js"},
|
||||
{"key":"tutu_open","name":"影视 | 图图","type":3,"api":"assets://js/tutu_open.js"},
|
||||
{"key":"jojo_open","name":"影视 | jojo","type":3,"api":"assets://js/jojo_open.js"},
|
||||
{"key":"jiohub","name":"影视 | jiohub","type":3,"api":"assets://js/jiohub.js"},
|
||||
{"key":"kunyu77_yz","name":"影视 | 七七","type":3,"api":"assets://js/kunyu77.js"},
|
||||
{"key":"czzy","name":"影视 | 厂长","type":3,"api":"assets://js/czzy_open.js"},
|
||||
{"key":"libvio","name":"影视 | libvio","type":3,"api":"assets://js/libvio_open.js"},
|
||||
|
@ -9,9 +9,10 @@
|
||||
{"key":"yzys_open","name":"影视 | 柚子","type":3,"api":"assets://js/yzys_open.js"},
|
||||
{"key":"sssp_open","name":"影视 | 速搜","type":3,"api":"assets://js/sssp_open.js"},
|
||||
{"key":"bulei_open","name":"影视 | 布雷","type":3,"api":"assets://js/bulei_open.js"},
|
||||
{"key":"miku_open","name":"影视 | 咪咕","type":3,"api":"assets://js/miku_open"},
|
||||
{"key":"tutu_open","name":"影视 | 图图","type":3,"api":"assets://js/tutu_open"},
|
||||
{"key":"jojo_open","name":"影视 | jojo","type":3,"api":"assets://js/jojo_open"},
|
||||
{"key":"miku_open","name":"影视 | 咪咕","type":3,"api":"assets://js/miku_open.js"},
|
||||
{"key":"tutu_open","name":"影视 | 图图","type":3,"api":"assets://js/tutu_open.js"},
|
||||
{"key":"jojo_open","name":"影视 | jojo","type":3,"api":"assets://js/jojo_open.js"},
|
||||
{"key":"jiohub","name":"影视 | jiohub","type":3,"api":"assets://js/jiohub.js"},
|
||||
{"key":"kunyu77","name":"影视 | 七七1","type":3,"api":"assets://js/kunyu77_open.js"},
|
||||
{"key":"kunyu77_yz","name":"影视 | 七七2","type":3,"api":"assets://js/kunyu77.js"},
|
||||
{"key":"czzy","name":"影视 | 厂长","type":3,"api":"assets://js/czzy_open.js"},
|
||||
|
206
cat/js/jiohub.js
Normal file
206
cat/js/jiohub.js
Normal file
@ -0,0 +1,206 @@
|
||||
import { Crypto, load, _, dayjs } from './lib/cat.js';
|
||||
|
||||
let key = 'jiohub';
|
||||
let url = 'https://jiohub.top';
|
||||
let siteKey = '';
|
||||
let siteType = 0;
|
||||
|
||||
const UA = 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1';
|
||||
|
||||
const cookie = {};
|
||||
|
||||
async function request(reqUrl, referer, mth, data, hd) {
|
||||
const headers = {
|
||||
'User-Agent': UA,
|
||||
Cookie: _.map(cookie, (value, key) => {
|
||||
return `${key}=${value}`;
|
||||
}).join(';'),
|
||||
};
|
||||
if (referer) headers.referer = encodeURIComponent(referer);
|
||||
let res = await req(reqUrl, {
|
||||
method: mth || 'get',
|
||||
headers: headers,
|
||||
data: data,
|
||||
postType: mth === 'post' ? 'form' : '',
|
||||
});
|
||||
return res.content;
|
||||
}
|
||||
|
||||
// cfg = {skey: siteKey, ext: extend}
|
||||
async function init(cfg) {
|
||||
siteKey = cfg.skey;
|
||||
siteType = cfg.stype;
|
||||
}
|
||||
|
||||
async function home(filter) {
|
||||
const html = await request(url);
|
||||
const $ = load(html);
|
||||
const series = $('.nav-list a[href*=/video]');
|
||||
let classes = _.map(series, (s) => {
|
||||
let typeId = s.attribs['href'];
|
||||
let typeName = typeId.match(/\/video\/(.*)\?/)[1];
|
||||
typeName = decodeURIComponent(typeName);
|
||||
return {
|
||||
type_id: typeName,
|
||||
type_name: typeName,
|
||||
};
|
||||
});
|
||||
return JSON.stringify({
|
||||
class: classes,
|
||||
});
|
||||
}
|
||||
|
||||
async function homeVod() {
|
||||
return '{}';
|
||||
}
|
||||
|
||||
async function category(tid, pg, filter, extend) {
|
||||
let page = pg || 1;
|
||||
if (page == 0) page = 1;
|
||||
const link = url + '/video/' + tid + "?page=" + page + '&size=18';
|
||||
const html = await request(link);
|
||||
const $ = load(html);
|
||||
const items = $('div.content-body > a');
|
||||
let videos = _.map(items, (item) => {
|
||||
const img = $(item).find('img:first')[0].attribs['src'];
|
||||
const a = item.attribs['href'].match(/\/watch\/(.*)/)[1];
|
||||
const n = ($(item).find('p.card-title')[0]).children[0].data;
|
||||
let speed = ($(item).find('p.item-speed')[0]).children[0].data || '';
|
||||
const score = ($(item).find('p.score')[0]).children[0].data || '';
|
||||
if (speed == tid) speed = '';
|
||||
return {
|
||||
vod_id: a,
|
||||
vod_name: n,
|
||||
vod_pic: img,
|
||||
vod_remarks: speed || score || '',
|
||||
};
|
||||
});
|
||||
|
||||
let total = 18;
|
||||
const pag = $('ui-pagination');
|
||||
if (pag.length > 0) {
|
||||
try {
|
||||
total = parseInt(pag[0].attribs['total']);
|
||||
} catch (error) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return JSON.stringify({
|
||||
page: page,
|
||||
pagecount: _.ceil(total / 18),
|
||||
list: videos,
|
||||
});
|
||||
}
|
||||
|
||||
function stripHtmlTag(src) {
|
||||
return src
|
||||
.replace(/<\/?[^>]+(>|$)/g, '')
|
||||
.replace(/&.{1,5};/g, '')
|
||||
.replace(/\s{2,}/g, ' ');
|
||||
}
|
||||
|
||||
async function detail(id) {
|
||||
const html = await request(url + '/watch/' + id);
|
||||
const $ = load(html);
|
||||
const detail = $('div.content-detail > p');
|
||||
let vod = {
|
||||
vod_id: id,
|
||||
vod_content: stripHtmlTag($('div.content-detail span.detail-sketch').html()).trim(),
|
||||
};
|
||||
for (const info of detail) {
|
||||
const i = $(info).text().trim();
|
||||
if (i.startsWith('地区:')) {
|
||||
vod.vod_area = i.substring(3);
|
||||
} else if (i.startsWith('年份:')) {
|
||||
vod.vod_year = i.substring(3);
|
||||
} else if (i.startsWith('类型:')) {
|
||||
vod.vod_type = i.substring(3);
|
||||
} else if (i.startsWith('导演:')) {
|
||||
vod.vod_director = i.substring(3);
|
||||
} else if (i.startsWith('主演:')) {
|
||||
vod.vod_actor = i.substring(3);
|
||||
} else if (i.startsWith('语言:')) {
|
||||
vod.vod_lang = i.substring(3);
|
||||
}
|
||||
}
|
||||
|
||||
const urls = html.match(/let urls = \"(.*)\";/)[1].replace(/_/g, '/').replace(/-/g, '+');
|
||||
var key = Crypto.enc.Utf8.parse("cf2d1a-6a4d-9ef8");
|
||||
var playlist = Crypto.AES.decrypt(urls, key, { iv: key, padding: Crypto.pad.Pkcs7 });
|
||||
playlist = Crypto.enc.Utf8.stringify(playlist).split('\n');
|
||||
vod.vod_play_from = 'JOJO';
|
||||
vod.vod_play_url = playlist.join('#');
|
||||
return JSON.stringify({
|
||||
list: [vod],
|
||||
});
|
||||
}
|
||||
|
||||
function playPid() {
|
||||
var key = Crypto.enc.Utf8.parse("ba0-d4g5-45eb-c2ba0-d4g5-45eb-cs");
|
||||
var iv = Crypto.enc.Hex.parse("00000000000000000000000000000000");
|
||||
var pid = Crypto.AES.encrypt(dayjs().format('YYYY-MM-DD HH:mm'), key, { iv: iv, padding: Crypto.pad.Pkcs7 });
|
||||
pid = pid.toString().replace(/\+/g, '-');
|
||||
return pid;
|
||||
}
|
||||
|
||||
async function play(flag, id, flags) {
|
||||
return JSON.stringify({
|
||||
parse: 0,
|
||||
url: id + '?pid=' + playPid(),
|
||||
header: {
|
||||
'User-Agent': UA,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
async function search(wd, quick, pg) {
|
||||
let page = pg || 1;
|
||||
if (page == 0) page = 1;
|
||||
const link = url + '/video/search?q=' + wd + "&page=" + page + '&size=18&pid=' + playPid();
|
||||
const html = await request(link);
|
||||
const $ = load(html);
|
||||
const items = $('div.content-body > a');
|
||||
let videos = _.map(items, (item) => {
|
||||
const img = $(item).find('img:first')[0].attribs['src'];
|
||||
const a = item.attribs['href'].match(/\/watch\/(.*)/)[1];
|
||||
const n = ($(item).find('p.card-title')[0]).children[0].data;
|
||||
let speed = ($(item).find('p.item-speed')[0]).children[0].data || '';
|
||||
const score = ($(item).find('p.score')[0]).children[0].data || '';
|
||||
if (speed == '电影') speed = '';
|
||||
return {
|
||||
vod_id: a,
|
||||
vod_name: n,
|
||||
vod_pic: img,
|
||||
vod_remarks: speed || score || '',
|
||||
};
|
||||
});
|
||||
|
||||
let total = 18;
|
||||
const pag = $('ui-pagination');
|
||||
if (pag.length > 0) {
|
||||
try {
|
||||
total = parseInt(pag[0].attribs['total']);
|
||||
} catch (error) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return JSON.stringify({
|
||||
page: page,
|
||||
pagecount: _.ceil(total / 18),
|
||||
list: videos,
|
||||
});
|
||||
}
|
||||
|
||||
export function __jsEvalReturn() {
|
||||
return {
|
||||
init: init,
|
||||
home: home,
|
||||
homeVod: homeVod,
|
||||
category: category,
|
||||
detail: detail,
|
||||
play: play,
|
||||
search: search,
|
||||
};
|
||||
}
|
File diff suppressed because one or more lines are too long
5
js.json
5
js.json
@ -42,9 +42,10 @@
|
||||
{"key":"drpy_js_磁力熊搜索","name":"搜索 | 磁力熊[js]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/cilixiong.js","searchable":0,"quickSearch":0,"changeable":1},
|
||||
{"key":"lf_js_search","name":"搜索 | 路飞[js]","type":3,"searchable":0,"changeable":1,"quickSearch":0,"filterable":0,"api":"./lib/lf_search3_min.js"},
|
||||
{"key":"drpy_js_新片场","name":"新片 | 新片场[js]","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":0,"ext":"./js/新片场.js"},
|
||||
{"key":"drpy_js_短剧网","name":"短剧 | 短剧网[js]","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":0,"ext":"./js/短剧网.js"},
|
||||
{"key":"csp_YGP","name":"新片 | 预告片[jar]","type":3,"api":"csp_YGP","searchable":1,"quickSearch":1,"changeable":0},
|
||||
|
||||
{"key":"csp_Wobg","name":"阿里 | 玩偶表哥[jar]","type":3,"api":"csp_Wobg","searchable":1,"quickSearch":1,"changeable":1,"ext":"http://127.0.0.1:9978/file/tvfan/token.json", "timeout":30},
|
||||
|
||||
{"key":"csp_wogg_cli","name":"俊于 | 玩偶[T4]","type":4,"api":"http://home.jundie.top:9520/spider/csp_Wogg","searchable":1,"quickSearch":1,"filterable":1,"ext":"http://127.0.0.1:9978/file/tvfan/token.txt", "timeout":30},
|
||||
{"key":"小纸条_cli","name":"俊于 | 小纸条[T4]","type":4,"api":"http://home.jundie.top:9520/spider/cli_gitCafe","searchable":1,"quickSearch":1,"filterable":1,"ext":"http://127.0.0.1:9978/file/tvfan/token.txt", "timeout":30},
|
||||
{"key":"lf_js_p2p","name":"路飞 | 磁力[js]","type":3,"searchable":1,"changeable":1,"quickSearch":1,"filterable":1,"api":"./lib/lf_p2p2_min.js","timeout":30},
|
||||
@ -90,6 +91,8 @@
|
||||
{"key":"drpy_js_爱迪[V2]","name":"影视 | 爱迪[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/爱迪[V2].js"},
|
||||
{"key":"drpy_js_创艺影视[V2]","name":"影视 | 创艺影视[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/创艺影视[V2].js"},
|
||||
{"key":"drpy_js_咕噜[V2]","name":"影视 | 咕噜[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/咕噜[V2].js"},
|
||||
{"key":"drpy_js_吼吼[V2]","name":"影视 | 吼吼[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/吼吼[V2].js"},
|
||||
{"key":"drpy_js_曲奇影视[V2]","name":"影视 | 曲奇影视[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/曲奇影视[V2].js"},
|
||||
{"key":"drpy_js_热剧猫[V2]","name":"影视 | 热剧猫[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/热剧猫[V2].js"},
|
||||
{"key":"drpy_js_速看100[V2]","name":"影视 | 速看100[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/速看100[V2].js"},
|
||||
{"key":"drpy_js_鸭鸭[V2]","name":"影视 | 鸭鸭[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/鸭鸭[V2].js"},
|
||||
|
215
js/吼吼[V2].js
Normal file
215
js/吼吼[V2].js
Normal file
@ -0,0 +1,215 @@
|
||||
var rule = {
|
||||
title: '吼吼[V2]', // csp_AppYsV2
|
||||
host: 'https://hoho.tv/api.php/app/',
|
||||
url: 'video?tid=fyclassfyfilter&limit=20&pg=fypage',
|
||||
filter_url:'&class={{fl.class}}&area={{fl.area}}&lang={{fl.lang}}&letter={{fl.letter}}&year={{fl.year}}&by={{fl.by}}',
|
||||
filter: {
|
||||
"1":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"喜剧","v":"喜剧"},{"n":"爱情","v":"爱情"},{"n":"恐怖","v":"恐怖"},{"n":"动作","v":"动作"},{"n":"科幻","v":"科幻"},{"n":"剧情","v":"剧情"},{"n":"战争","v":"战争"},{"n":"警匪","v":"警匪"},{"n":"犯罪","v":"犯罪"},{"n":"动画","v":"动画"},{"n":"奇幻","v":"奇幻"},{"n":"武侠","v":"武侠"},{"n":"冒险","v":"冒险"},{"n":"枪战","v":"枪战"},{"n":"恐怖","v":"恐怖"},{"n":"悬疑","v":"悬疑"},{"n":"惊悚","v":"惊悚"},{"n":"经典","v":"经典"},{"n":"青春","v":"青春"},{"n":"文艺","v":"文艺"},{"n":"微电影","v":"微电影"},{"n":"古装","v":"古装"},{"n":"历史","v":"历史"},{"n":"运动","v":"运动"},{"n":"农村","v":"农村"},{"n":"儿童","v":"儿童"},{"n":"网络电影","v":"网络电影"},{"n":"Top美剧","v":"Top美剧"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"大陆"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"},{"n":"美国","v":"美国"},{"n":"法国","v":"法国"},{"n":"英国","v":"英国"},{"n":"日本","v":"日本"},{"n":"韩国","v":"韩国"},{"n":"德国","v":"德国"},{"n":"泰国","v":"泰国"},{"n":"印度","v":"印度"},{"n":"意大利","v":"意大利"},{"n":"西班牙","v":"西班牙"},{"n":"加拿大","v":"加拿大"},{"n":"其他","v":"其他"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"法语","v":"法语"},{"n":"德语","v":"德语"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"}]}],
|
||||
"2":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"悬疑","v":"悬疑"},{"n":"刑侦","v":"刑侦"},{"n":"古装","v":"古装"},{"n":"战争","v":"战争"},{"n":"爱情","v":"爱情"},{"n":"喜剧","v":"喜剧"},{"n":"家庭","v":"家庭"},{"n":"犯罪","v":"犯罪"},{"n":"动作","v":"动作"},{"n":"奇幻","v":"奇幻"},{"n":"剧情","v":"剧情"},{"n":"历史","v":"历史"},{"n":"经典","v":"经典"},{"n":"乡村","v":"乡村"},{"n":"商战","v":"商战"},{"n":"网剧","v":"网剧"},{"n":"其他","v":"其他"},{"n":"Top美剧","v":"Top美剧"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"内地","v":"内地"},{"n":"韩国","v":"韩国"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"},{"n":"日本","v":"日本"},{"n":"美国","v":"美国"},{"n":"泰国","v":"泰国"},{"n":"英国","v":"英国"},{"n":"新加坡","v":"新加坡"},{"n":"其他","v":"其他"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"}]}],
|
||||
"3":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"选秀","v":"选秀"},{"n":"情感","v":"情感"},{"n":"访谈","v":"访谈"},{"n":"播报","v":"播报"},{"n":"旅游","v":"旅游"},{"n":"音乐","v":"音乐"},{"n":"美食","v":"美食"},{"n":"纪实","v":"纪实"},{"n":"曲艺","v":"曲艺"},{"n":"生活","v":"生活"},{"n":"游戏互动","v":"游戏互动"},{"n":"财经","v":"财经"},{"n":"求职","v":"求职"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"内地","v":"内地"},{"n":"港台","v":"港台"},{"n":"日韩","v":"日韩"},{"n":"欧美","v":"欧美"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"}]}],
|
||||
"4":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"情感","v":"情感"},{"n":"科幻","v":"科幻"},{"n":"热血","v":"热血"},{"n":"推理","v":"推理"},{"n":"搞笑","v":"搞笑"},{"n":"冒险","v":"冒险"},{"n":"萝莉","v":"萝莉"},{"n":"校园","v":"校园"},{"n":"动作","v":"动作"},{"n":"机战","v":"机战"},{"n":"运动","v":"运动"},{"n":"战争","v":"战争"},{"n":"少年","v":"少年"},{"n":"少女","v":"少女"},{"n":"社会","v":"社会"},{"n":"原创","v":"原创"},{"n":"亲子","v":"亲子"},{"n":"益智","v":"益智"},{"n":"励志","v":"励志"},{"n":"其他","v":"其他"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"国产","v":"国产"},{"n":"日本","v":"日本"},{"n":"欧美","v":"欧美"},{"n":"其他","v":"其他"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"}]}],
|
||||
"20":[{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"}]}],
|
||||
"37":[{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"}]}]
|
||||
},
|
||||
detailUrl:'/detail?vod_id=fyid',
|
||||
searchUrl: '/search?text=**&pg=fypage',
|
||||
searchable: 2,
|
||||
quickSearch: 0,
|
||||
filterable:1,//是否启用分类筛选,
|
||||
headers:{'User-Agent':'okhttp/4.1.0'},
|
||||
timeout:5000,
|
||||
// 分类筛选 /api.php/app/nav || /xgapp.php/v1/nav || /api.php/v1.vod/types
|
||||
class_name:'电影&连续剧&综艺&动漫&纪录片&电影解说',
|
||||
class_url:'1&2&3&4&20&37',
|
||||
play_parse:true,
|
||||
lazy:`js:
|
||||
let play_Url = '';
|
||||
if (/\\.m3u8|\\.mp4/.test(input)) {
|
||||
input = {
|
||||
jx: 0,
|
||||
url: input,
|
||||
parse: 0
|
||||
}
|
||||
} else if (/,/.test(input) && /url=/.test(input)) {
|
||||
input = input.split('url=');
|
||||
play_Url = input[0].split(',')[0];
|
||||
input = {
|
||||
jx: 0,
|
||||
url: input[1],
|
||||
playUrl: play_Url,
|
||||
parse: 1
|
||||
}
|
||||
} else if (/url=|id=/.test(input)) {
|
||||
input = {
|
||||
jx: 0,
|
||||
url: JSON.parse(request(input)).url,
|
||||
parse: 0
|
||||
}
|
||||
} else if (/youku|iqiyi|v\\.qq\\.com|pptv|sohu|le\\.com|1905\\.com|mgtv|bilibili|ixigua/.test(input)) {
|
||||
play_Url = /bilibili/.test(input) ? 'https://jx.xmflv.com/?url=' : 'https://jx.777jiexi.com/player/?url='; // type0的parse
|
||||
// play_Url = /bilibili/.test(input) ? 'https://jx.xmflv.com/?url=' : 'json:http://pandown.pro/app/kkdy.php?url='; // type1的parse可加'json:'直接解析url (除了蜂蜜的'影视TV',其它的壳皆可用)
|
||||
input = {
|
||||
jx: 0,
|
||||
url: input,
|
||||
playUrl: play_Url,
|
||||
parse: 1,
|
||||
header: JSON.stringify({
|
||||
'user-agent': 'Mozilla/5.0',
|
||||
}),
|
||||
}
|
||||
} else {
|
||||
input
|
||||
}
|
||||
`,
|
||||
limit:6,
|
||||
// 图片来源:'@Referer=https://api.douban.com/@User-Agent=Mozilla/5.0%20(Windows%20NT%2010.0;%20Win64;%20x64)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/113.0.0.0%20Safari/537.36',
|
||||
推荐:`js:
|
||||
let d = [];
|
||||
let jsondata = [];
|
||||
let videoList = [];
|
||||
if (/v1\\.vod/.test(HOST)) {
|
||||
if(HOST.endsWith('/')){
|
||||
jsondata = JSON.parse(request(HOST + 'vodPhbAll'));
|
||||
} else {
|
||||
jsondata = JSON.parse(request(HOST + '/vodPhbAll'));
|
||||
}
|
||||
videoList = jsondata.data.list;
|
||||
} else {
|
||||
if(HOST.endsWith('/')){
|
||||
jsondata = JSON.parse(request(HOST + 'index_video'));
|
||||
} else {
|
||||
jsondata = JSON.parse(request(HOST + '/index_video'));
|
||||
}
|
||||
videoList = /xgapp/.test(HOST) ? jsondata.data : jsondata.list;
|
||||
}
|
||||
// log('videoList =========> '+stringify(videoList));
|
||||
videoList.forEach((it,idex) => {
|
||||
let vlist = /v1\\.vod/.test(HOST) ? videoList[idex].vod_list : videoList[idex].vlist ;
|
||||
vlist.forEach(it => {
|
||||
d.push({
|
||||
url:it.vod_id,
|
||||
title:it.vod_name,
|
||||
img:it.vod_pic.startsWith('http') ? it.vod_pic : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic,
|
||||
desc:it.vod_remarks,
|
||||
});
|
||||
});
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
一级:`js:
|
||||
let d = [];
|
||||
let jsondata = [];
|
||||
let videoList = [];
|
||||
if (/v1\\.vod/.test(HOST)) {
|
||||
input = input.replace('video','v1.vod').replace('tid','type').replace('pg=','page=');
|
||||
jsondata = JSON.parse(request(input));
|
||||
videoList = jsondata.data.list;
|
||||
} else {
|
||||
input = HOST + '/'+ input.split('/')[4];
|
||||
jsondata = JSON.parse(request(input));
|
||||
videoList = jsondata.list || jsondata.data;
|
||||
}
|
||||
// log('videoList =========> '+stringify(videoList));
|
||||
videoList.forEach(it => {
|
||||
d.push({
|
||||
url:it.vod_id,
|
||||
title:it.vod_name,
|
||||
img:it.vod_pic.startsWith('http') ? it.vod_pic : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic,
|
||||
desc:it.vod_remarks,
|
||||
});
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
二级:`js:
|
||||
if (/v1\\.vod/.test(HOST)) {
|
||||
input = HOST + '/'+ input.split('/')[3];
|
||||
} else {
|
||||
input = HOST + '/'+ input.split('/')[3].replace('detail','video_detail').replace('vod_id','id');
|
||||
}
|
||||
try {
|
||||
let html = request(input);
|
||||
html = JSON.parse(html);
|
||||
let node = /xgapp/.test(HOST) ? html.data.vod_info : html.data;
|
||||
VOD = {
|
||||
vod_id: node.vod_id,
|
||||
vod_name: node.vod_name,
|
||||
vod_pic: node.vod_pic,
|
||||
type_name: node.vod_class,
|
||||
vod_year: node.vod_year,
|
||||
vod_area: node.vod_area,
|
||||
vod_remarks: node.vod_remarks,
|
||||
vod_actor: node.vod_actor,
|
||||
vod_director: node.vod_director,
|
||||
vod_content: node.vod_content.strip()
|
||||
};
|
||||
if (typeof play_url === 'undefined') {
|
||||
var play_url = ''
|
||||
}
|
||||
let episodes = /v1\\.vod/.test(HOST)?node.vod_play_list:node.vod_url_with_player;
|
||||
if (episodes != '') {
|
||||
let playMap = {};
|
||||
episodes.forEach(ep => {
|
||||
let from = [];
|
||||
if (/v1\\.vod/.test(HOST)) {
|
||||
from = ep.player_info.from||ep.player_info.show||ep.from||ep.show;
|
||||
} else {
|
||||
from = ep.code||ep.name;
|
||||
}
|
||||
if (!playMap.hasOwnProperty(from)) {
|
||||
playMap[from] = []
|
||||
}
|
||||
let parse_api = '';
|
||||
if (/v1\\.vod/.test(HOST)) {
|
||||
parse_api = ep.player_info.parse != null ? ep.player_info.parse : ep.player_info.parse2;
|
||||
// parse_api = /,/.test(parse_api) ? parse_api.split(',')[1] : parse_api;
|
||||
} else {
|
||||
parse_api = ep.parse_api;
|
||||
}
|
||||
log('parse_api =========> '+parse_api);
|
||||
if (parse_api != null && !/\\.m3u8|\\.mp4/.test(ep.url)) {
|
||||
parse_api = parse_api.replaceAll('..','.') ;
|
||||
ep.url = ep.url.replaceAll('$','$'+parse_api);
|
||||
}
|
||||
playMap[from].push(ep.url)
|
||||
});
|
||||
let playFrom = [];
|
||||
let playList = [];
|
||||
Object.keys(playMap).forEach(key => {
|
||||
playFrom.push(key);
|
||||
playList.push(playMap[key])
|
||||
});
|
||||
VOD.vod_play_from = playFrom.join('$$$');
|
||||
VOD.vod_play_url = playList.join('$$$');
|
||||
} else {
|
||||
VOD.vod_play_from = node.vod_play_from;
|
||||
VOD.vod_play_url = node.vod_play_url;
|
||||
}
|
||||
} catch (e) {
|
||||
log("获取二级详情页发生错误:" + e.message);
|
||||
}
|
||||
`,
|
||||
搜索:`js:
|
||||
let d = [];
|
||||
let jsondata = [];
|
||||
let videoList = [];
|
||||
if (/v1\\.vod/.test(HOST)) {
|
||||
input = (HOST + '/'+ input.split('/')[3]).replace('/search','').replace('text=','wd=').replace('pg=','page=');
|
||||
jsondata = JSON.parse(request(input));
|
||||
videoList = jsondata.data.list;
|
||||
} else {
|
||||
input = HOST + '/'+ input.split('/')[3]
|
||||
jsondata = JSON.parse(request(input));
|
||||
videoList = jsondata.list || jsondata.data;
|
||||
}
|
||||
// log('videoList =========> '+stringify(videoList));
|
||||
videoList.forEach(it => {
|
||||
d.push({
|
||||
url:it.vod_id,
|
||||
title:it.vod_name,
|
||||
img:it.vod_pic.startsWith('http') ? it.vod_pic : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic,
|
||||
desc:it.vod_remarks,
|
||||
});
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
}
|
215
js/曲奇影视[V2].js
Normal file
215
js/曲奇影视[V2].js
Normal file
@ -0,0 +1,215 @@
|
||||
var rule = {
|
||||
title: '曲奇影视[V2]', // csp_AppYsV2
|
||||
host: 'https://1234567.weixiaolove.cn/api.php/app/',
|
||||
url: 'video?tid=fyclassfyfilter&limit=20&pg=fypage',
|
||||
filter_url:'&class={{fl.class}}&area={{fl.area}}&lang={{fl.lang}}&letter={{fl.letter}}&year={{fl.year}}&by={{fl.by}}',
|
||||
filter: {
|
||||
// "20":[{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"}]}],
|
||||
"1":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"喜剧","v":"喜剧"},{"n":"爱情","v":"爱情"},{"n":"恐怖","v":"恐怖"},{"n":"动作","v":"动作"},{"n":"科幻","v":"科幻"},{"n":"剧情","v":"剧情"},{"n":"战争","v":"战争"},{"n":"警匪","v":"警匪"},{"n":"犯罪","v":"犯罪"},{"n":"动画","v":"动画"},{"n":"奇幻","v":"奇幻"},{"n":"武侠","v":"武侠"},{"n":"冒险","v":"冒险"},{"n":"枪战","v":"枪战"},{"n":"恐怖","v":"恐怖"},{"n":"悬疑","v":"悬疑"},{"n":"惊悚","v":"惊悚"},{"n":"经典","v":"经典"},{"n":"青春","v":"青春"},{"n":"文艺","v":"文艺"},{"n":"微电影","v":"微电影"},{"n":"古装","v":"古装"},{"n":"历史","v":"历史"},{"n":"运动","v":"运动"},{"n":"农村","v":"农村"},{"n":"儿童","v":"儿童"},{"n":"网络电影","v":"网络电影"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"大陆"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"},{"n":"美国","v":"美国"},{"n":"法国","v":"法国"},{"n":"英国","v":"英国"},{"n":"日本","v":"日本"},{"n":"韩国","v":"韩国"},{"n":"德国","v":"德国"},{"n":"泰国","v":"泰国"},{"n":"印度","v":"印度"},{"n":"意大利","v":"意大利"},{"n":"西班牙","v":"西班牙"},{"n":"加拿大","v":"加拿大"},{"n":"其他","v":"其他"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"法语","v":"法语"},{"n":"德语","v":"德语"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"}]}],
|
||||
"2":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"古装","v":"古装"},{"n":"战争","v":"战争"},{"n":"青春偶像","v":"青春偶像"},{"n":"喜剧","v":"喜剧"},{"n":"家庭","v":"家庭"},{"n":"犯罪","v":"犯罪"},{"n":"动作","v":"动作"},{"n":"奇幻","v":"奇幻"},{"n":"剧情","v":"剧情"},{"n":"历史","v":"历史"},{"n":"经典","v":"经典"},{"n":"乡村","v":"乡村"},{"n":"情景","v":"情景"},{"n":"商战","v":"商战"},{"n":"网剧","v":"网剧"},{"n":"其他","v":"其他"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"内地","v":"内地"},{"n":"韩国","v":"韩国"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"},{"n":"日本","v":"日本"},{"n":"美国","v":"美国"},{"n":"泰国","v":"泰国"},{"n":"英国","v":"英国"},{"n":"新加坡","v":"新加坡"},{"n":"其他","v":"其他"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"}]}],
|
||||
"3":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"选秀","v":"选秀"},{"n":"情感","v":"情感"},{"n":"访谈","v":"访谈"},{"n":"播报","v":"播报"},{"n":"旅游","v":"旅游"},{"n":"音乐","v":"音乐"},{"n":"美食","v":"美食"},{"n":"纪实","v":"纪实"},{"n":"曲艺","v":"曲艺"},{"n":"生活","v":"生活"},{"n":"游戏互动","v":"游戏互动"},{"n":"财经","v":"财经"},{"n":"求职","v":"求职"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"内地","v":"内地"},{"n":"港台","v":"港台"},{"n":"日韩","v":"日韩"},{"n":"欧美","v":"欧美"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"}]}],
|
||||
"4":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"情感","v":"情感"},{"n":"科幻","v":"科幻"},{"n":"热血","v":"热血"},{"n":"推理","v":"推理"},{"n":"搞笑","v":"搞笑"},{"n":"冒险","v":"冒险"},{"n":"萝莉","v":"萝莉"},{"n":"校园","v":"校园"},{"n":"动作","v":"动作"},{"n":"机战","v":"机战"},{"n":"运动","v":"运动"},{"n":"战争","v":"战争"},{"n":"少年","v":"少年"},{"n":"少女","v":"少女"},{"n":"社会","v":"社会"},{"n":"原创","v":"原创"},{"n":"亲子","v":"亲子"},{"n":"益智","v":"益智"},{"n":"励志","v":"励志"},{"n":"其他","v":"其他"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"国产","v":"国产"},{"n":"日本","v":"日本"},{"n":"欧美","v":"欧美"},{"n":"其他","v":"其他"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"}]}],
|
||||
"5":[{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"}]}]
|
||||
},
|
||||
detailUrl:'/detail?vod_id=fyid',
|
||||
searchUrl: '/search?text=**&pg=fypage',
|
||||
searchable: 2,
|
||||
quickSearch: 0,
|
||||
filterable:1,//是否启用分类筛选,
|
||||
headers:{'User-Agent':'okhttp/4.1.0'},
|
||||
timeout:5000,
|
||||
// 分类筛选 /api.php/app/nav || /xgapp.php/v1/nav || /api.php/v1.vod/types
|
||||
class_name:'体育&电影&连续剧&综艺&动漫&电影解说',
|
||||
class_url:'20&1&2&3&4&5',
|
||||
play_parse:true,
|
||||
lazy:`js:
|
||||
let play_Url = '';
|
||||
if (/\\.m3u8|\\.mp4/.test(input)) {
|
||||
input = {
|
||||
jx: 0,
|
||||
url: input,
|
||||
parse: 0
|
||||
}
|
||||
} else if (/,/.test(input) && /url=/.test(input)) {
|
||||
input = input.split('url=');
|
||||
play_Url = input[0].split(',')[0];
|
||||
input = {
|
||||
jx: 0,
|
||||
url: input[1],
|
||||
playUrl: play_Url,
|
||||
parse: 1
|
||||
}
|
||||
} else if (/url=|id=/.test(input)) {
|
||||
input = {
|
||||
jx: 0,
|
||||
url: JSON.parse(request(input)).url,
|
||||
parse: 0
|
||||
}
|
||||
} else if (/youku|iqiyi|v\\.qq\\.com|pptv|sohu|le\\.com|1905\\.com|mgtv|bilibili|ixigua/.test(input)) {
|
||||
play_Url = /bilibili/.test(input) ? 'https://jx.xmflv.com/?url=' : 'https://jx.777jiexi.com/player/?url='; // type0的parse
|
||||
// play_Url = /bilibili/.test(input) ? 'https://jx.xmflv.com/?url=' : 'json:http://pandown.pro/app/kkdy.php?url='; // type1的parse可加'json:'直接解析url (除了蜂蜜的'影视TV',其它的壳皆可用)
|
||||
input = {
|
||||
jx: 0,
|
||||
url: input,
|
||||
playUrl: play_Url,
|
||||
parse: 1,
|
||||
header: JSON.stringify({
|
||||
'user-agent': 'Mozilla/5.0',
|
||||
}),
|
||||
}
|
||||
} else {
|
||||
input
|
||||
}
|
||||
`,
|
||||
limit:6,
|
||||
// 图片来源:'@Referer=https://api.douban.com/@User-Agent=Mozilla/5.0%20(Windows%20NT%2010.0;%20Win64;%20x64)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/113.0.0.0%20Safari/537.36',
|
||||
推荐:`js:
|
||||
let d = [];
|
||||
let jsondata = [];
|
||||
let videoList = [];
|
||||
if (/v1\\.vod/.test(HOST)) {
|
||||
if(HOST.endsWith('/')){
|
||||
jsondata = JSON.parse(request(HOST + 'vodPhbAll'));
|
||||
} else {
|
||||
jsondata = JSON.parse(request(HOST + '/vodPhbAll'));
|
||||
}
|
||||
videoList = jsondata.data.list;
|
||||
} else {
|
||||
if(HOST.endsWith('/')){
|
||||
jsondata = JSON.parse(request(HOST + 'index_video'));
|
||||
} else {
|
||||
jsondata = JSON.parse(request(HOST + '/index_video'));
|
||||
}
|
||||
videoList = /xgapp/.test(HOST) ? jsondata.data : jsondata.list;
|
||||
}
|
||||
// log('videoList =========> '+stringify(videoList));
|
||||
videoList.forEach((it,idex) => {
|
||||
let vlist = /v1\\.vod/.test(HOST) ? videoList[idex].vod_list : videoList[idex].vlist ;
|
||||
vlist.forEach(it => {
|
||||
d.push({
|
||||
url:it.vod_id,
|
||||
title:it.vod_name,
|
||||
img:it.vod_pic.startsWith('http') ? it.vod_pic : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic,
|
||||
desc:it.vod_remarks,
|
||||
});
|
||||
});
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
一级:`js:
|
||||
let d = [];
|
||||
let jsondata = [];
|
||||
let videoList = [];
|
||||
if (/v1\\.vod/.test(HOST)) {
|
||||
input = input.replace('video','v1.vod').replace('tid','type').replace('pg=','page=');
|
||||
jsondata = JSON.parse(request(input));
|
||||
videoList = jsondata.data.list;
|
||||
} else {
|
||||
input = HOST + '/'+ input.split('/')[4];
|
||||
jsondata = JSON.parse(request(input));
|
||||
videoList = jsondata.list || jsondata.data;
|
||||
}
|
||||
// log('videoList =========> '+stringify(videoList));
|
||||
videoList.forEach(it => {
|
||||
d.push({
|
||||
url:it.vod_id,
|
||||
title:it.vod_name,
|
||||
img:it.vod_pic.startsWith('http') ? it.vod_pic : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic,
|
||||
desc:it.vod_remarks,
|
||||
});
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
二级:`js:
|
||||
if (/v1\\.vod/.test(HOST)) {
|
||||
input = HOST + '/'+ input.split('/')[3];
|
||||
} else {
|
||||
input = HOST + '/'+ input.split('/')[3].replace('detail','video_detail').replace('vod_id','id');
|
||||
}
|
||||
try {
|
||||
let html = request(input);
|
||||
html = JSON.parse(html);
|
||||
let node = /xgapp/.test(HOST) ? html.data.vod_info : html.data;
|
||||
VOD = {
|
||||
vod_id: node.vod_id,
|
||||
vod_name: node.vod_name,
|
||||
vod_pic: node.vod_pic,
|
||||
type_name: node.vod_class,
|
||||
vod_year: node.vod_year,
|
||||
vod_area: node.vod_area,
|
||||
vod_remarks: node.vod_remarks,
|
||||
vod_actor: node.vod_actor,
|
||||
vod_director: node.vod_director,
|
||||
vod_content: node.vod_content.strip()
|
||||
};
|
||||
if (typeof play_url === 'undefined') {
|
||||
var play_url = ''
|
||||
}
|
||||
let episodes = /v1\\.vod/.test(HOST)?node.vod_play_list:node.vod_url_with_player;
|
||||
if (episodes != '') {
|
||||
let playMap = {};
|
||||
episodes.forEach(ep => {
|
||||
let from = [];
|
||||
if (/v1\\.vod/.test(HOST)) {
|
||||
from = ep.player_info.from||ep.player_info.show||ep.from||ep.show;
|
||||
} else {
|
||||
from = ep.code||ep.name;
|
||||
}
|
||||
if (!playMap.hasOwnProperty(from)) {
|
||||
playMap[from] = []
|
||||
}
|
||||
let parse_api = '';
|
||||
if (/v1\\.vod/.test(HOST)) {
|
||||
parse_api = ep.player_info.parse != null ? ep.player_info.parse : ep.player_info.parse2;
|
||||
// parse_api = /,/.test(parse_api) ? parse_api.split(',')[1] : parse_api;
|
||||
} else {
|
||||
parse_api = ep.parse_api;
|
||||
}
|
||||
log('parse_api =========> '+parse_api);
|
||||
if (parse_api != null && !/\\.m3u8|\\.mp4/.test(ep.url)) {
|
||||
parse_api = parse_api.replaceAll('..','.') ;
|
||||
ep.url = ep.url.replaceAll('$','$'+parse_api);
|
||||
}
|
||||
playMap[from].push(ep.url)
|
||||
});
|
||||
let playFrom = [];
|
||||
let playList = [];
|
||||
Object.keys(playMap).forEach(key => {
|
||||
playFrom.push(key);
|
||||
playList.push(playMap[key])
|
||||
});
|
||||
VOD.vod_play_from = playFrom.join('$$$');
|
||||
VOD.vod_play_url = playList.join('$$$');
|
||||
} else {
|
||||
VOD.vod_play_from = node.vod_play_from;
|
||||
VOD.vod_play_url = node.vod_play_url;
|
||||
}
|
||||
} catch (e) {
|
||||
log("获取二级详情页发生错误:" + e.message);
|
||||
}
|
||||
`,
|
||||
搜索:`js:
|
||||
let d = [];
|
||||
let jsondata = [];
|
||||
let videoList = [];
|
||||
if (/v1\\.vod/.test(HOST)) {
|
||||
input = (HOST + '/'+ input.split('/')[3]).replace('/search','').replace('text=','wd=').replace('pg=','page=');
|
||||
jsondata = JSON.parse(request(input));
|
||||
videoList = jsondata.data.list;
|
||||
} else {
|
||||
input = HOST + '/'+ input.split('/')[3]
|
||||
jsondata = JSON.parse(request(input));
|
||||
videoList = jsondata.list || jsondata.data;
|
||||
}
|
||||
// log('videoList =========> '+stringify(videoList));
|
||||
videoList.forEach(it => {
|
||||
d.push({
|
||||
url:it.vod_id,
|
||||
title:it.vod_name,
|
||||
img:it.vod_pic.startsWith('http') ? it.vod_pic : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic,
|
||||
desc:it.vod_remarks,
|
||||
});
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
}
|
34
js/短剧网.js
Normal file
34
js/短剧网.js
Normal file
@ -0,0 +1,34 @@
|
||||
muban.mxone5.二级.title = 'h1&&Text;.video-info-aux&&Text';
|
||||
muban.mxone5.二级.desc = ';;;.video-info-items:eq(1)&&Text;.video-info-items:eq(0)&&Text';
|
||||
var rule = {
|
||||
title: '短剧网',
|
||||
模板:'mxone5',
|
||||
host: 'https://m.duanju5.com',
|
||||
url: '/vodshow/fyclassfyfilter.html',
|
||||
filterable:1,//是否启用分类筛选,
|
||||
filter_url:'-{{fl.area}}-{{fl.by or "time"}}-{{fl.class}}-{{fl.lang}}-{{fl.letter}}---fypage---{{fl.year}}',
|
||||
filter: {
|
||||
"nixi":[{"key":"letter","name":"字母","value":[{"n":"A","v":"A"},{"n":"B","v":"B"},{"n":"C","v":"C"},{"n":"D","v":"D"},{"n":"E","v":"E"},{"n":"F","v":"F"},{"n":"G","v":"G"},{"n":"H","v":"H"},{"n":"I","v":"I"},{"n":"J","v":"J"},{"n":"K","v":"K"},{"n":"L","v":"L"},{"n":"M","v":"M"},{"n":"N","v":"N"},{"n":"O","v":"O"},{"n":"P","v":"P"},{"n":"Q","v":"Q"},{"n":"R","v":"R"},{"n":"S","v":"S"},{"n":"T","v":"T"},{"n":"U","v":"U"},{"n":"V","v":"V"},{"n":"W","v":"W"},{"n":"X","v":"X"},{"n":"Y","v":"Y"},{"n":"Z","v":"Z"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}],
|
||||
"tianchong":[{"key":"letter","name":"字母","value":[{"n":"A","v":"A"},{"n":"B","v":"B"},{"n":"C","v":"C"},{"n":"D","v":"D"},{"n":"E","v":"E"},{"n":"F","v":"F"},{"n":"G","v":"G"},{"n":"H","v":"H"},{"n":"I","v":"I"},{"n":"J","v":"J"},{"n":"K","v":"K"},{"n":"L","v":"L"},{"n":"M","v":"M"},{"n":"N","v":"N"},{"n":"O","v":"O"},{"n":"P","v":"P"},{"n":"Q","v":"Q"},{"n":"R","v":"R"},{"n":"S","v":"S"},{"n":"T","v":"T"},{"n":"U","v":"U"},{"n":"V","v":"V"},{"n":"W","v":"W"},{"n":"X","v":"X"},{"n":"Y","v":"Y"},{"n":"Z","v":"Z"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}],
|
||||
"nuelian":[{"key":"letter","name":"字母","value":[{"n":"A","v":"A"},{"n":"B","v":"B"},{"n":"C","v":"C"},{"n":"D","v":"D"},{"n":"E","v":"E"},{"n":"F","v":"F"},{"n":"G","v":"G"},{"n":"H","v":"H"},{"n":"I","v":"I"},{"n":"J","v":"J"},{"n":"K","v":"K"},{"n":"L","v":"L"},{"n":"M","v":"M"},{"n":"N","v":"N"},{"n":"O","v":"O"},{"n":"P","v":"P"},{"n":"Q","v":"Q"},{"n":"R","v":"R"},{"n":"S","v":"S"},{"n":"T","v":"T"},{"n":"U","v":"U"},{"n":"V","v":"V"},{"n":"W","v":"W"},{"n":"X","v":"X"},{"n":"Y","v":"Y"},{"n":"Z","v":"Z"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}],
|
||||
"chuanyue":[{"key":"letter","name":"字母","value":[{"n":"A","v":"A"},{"n":"B","v":"B"},{"n":"C","v":"C"},{"n":"D","v":"D"},{"n":"E","v":"E"},{"n":"F","v":"F"},{"n":"G","v":"G"},{"n":"H","v":"H"},{"n":"I","v":"I"},{"n":"J","v":"J"},{"n":"K","v":"K"},{"n":"L","v":"L"},{"n":"M","v":"M"},{"n":"N","v":"N"},{"n":"O","v":"O"},{"n":"P","v":"P"},{"n":"Q","v":"Q"},{"n":"R","v":"R"},{"n":"S","v":"S"},{"n":"T","v":"T"},{"n":"U","v":"U"},{"n":"V","v":"V"},{"n":"W","v":"W"},{"n":"X","v":"X"},{"n":"Y","v":"Y"},{"n":"Z","v":"Z"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}],
|
||||
"chongsheng":[{"key":"letter","name":"字母","value":[{"n":"A","v":"A"},{"n":"B","v":"B"},{"n":"C","v":"C"},{"n":"D","v":"D"},{"n":"E","v":"E"},{"n":"F","v":"F"},{"n":"G","v":"G"},{"n":"H","v":"H"},{"n":"I","v":"I"},{"n":"J","v":"J"},{"n":"K","v":"K"},{"n":"L","v":"L"},{"n":"M","v":"M"},{"n":"N","v":"N"},{"n":"O","v":"O"},{"n":"P","v":"P"},{"n":"Q","v":"Q"},{"n":"R","v":"R"},{"n":"S","v":"S"},{"n":"T","v":"T"},{"n":"U","v":"U"},{"n":"V","v":"V"},{"n":"W","v":"W"},{"n":"X","v":"X"},{"n":"Y","v":"Y"},{"n":"Z","v":"Z"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}]
|
||||
},
|
||||
lazy: `js:
|
||||
var html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
|
||||
var url = html.url;
|
||||
if (html.encrypt == '1') {
|
||||
url = unescape(url)
|
||||
} else if (html.encrypt == '2') {
|
||||
url = unescape(base64Decode(url))
|
||||
}
|
||||
if (/m3u8|mp4/.test(url)) {
|
||||
input = {jx:0, url:url, parse:0}
|
||||
} else {
|
||||
input
|
||||
}
|
||||
`,
|
||||
searchUrl:'/index.php/ajax/suggest?mid=1&wd=**&limit=50',
|
||||
detailUrl:'/voddetail/fyid.html', //非必填,二级详情拼接链接
|
||||
搜索:'json:list;name;pic;en;en',
|
||||
}
|
3
jsm.json
3
jsm.json
@ -42,6 +42,7 @@
|
||||
{"key":"drpy_js_磁力熊搜索","name":"搜索 | 磁力熊[js]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/cilixiong.js","searchable":0,"quickSearch":0,"changeable":1},
|
||||
{"key":"lf_js_search","name":"搜索 | 路飞[js]","type":3,"searchable":0,"changeable":1,"quickSearch":0,"filterable":0,"api":"./lib/lf_search3_min.js"},
|
||||
{"key":"drpy_js_新片场","name":"新片 | 新片场[js]","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":0,"ext":"./js/新片场.js"},
|
||||
{"key":"drpy_js_短剧网","name":"短剧 | 短剧网[js]","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":0,"ext":"./js/短剧网.js"},
|
||||
{"key":"csp_YGP","name":"新片 | 预告片[jar]","type":3,"api":"csp_YGP","searchable":1,"quickSearch":1,"changeable":0},
|
||||
|
||||
{"key":"csp_Wobg","name":"阿里 | 玩偶表哥[jar]","type":3,"api":"csp_Wobg","searchable":1,"quickSearch":1,"changeable":1,"ext":"http://127.0.0.1:9978/file/tvfan/token.json", "timeout":30,"jar":"./jar/fm.jar"},
|
||||
@ -90,6 +91,8 @@
|
||||
{"key":"drpy_js_爱迪[V2]","name":"影视 | 爱迪[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/爱迪[V2].js"},
|
||||
{"key":"drpy_js_创艺影视[V2]","name":"影视 | 创艺影视[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/创艺影视[V2].js"},
|
||||
{"key":"drpy_js_咕噜[V2]","name":"影视 | 咕噜[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/咕噜[V2].js"},
|
||||
{"key":"drpy_js_吼吼[V2]","name":"影视 | 吼吼[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/吼吼[V2].js"},
|
||||
{"key":"drpy_js_曲奇影视[V2]","name":"影视 | 曲奇影视[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/曲奇影视[V2].js"},
|
||||
{"key":"drpy_js_热剧猫[V2]","name":"影视 | 热剧猫[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/热剧猫[V2].js"},
|
||||
{"key":"drpy_js_速看100[V2]","name":"影视 | 速看100[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/速看100[V2].js"},
|
||||
{"key":"drpy_js_鸭鸭[V2]","name":"影视 | 鸭鸭[V2]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/鸭鸭[V2].js"},
|
||||
|
Loading…
x
Reference in New Issue
Block a user