mirror of
https://github.com/qist/tvbox.git
synced 2026-11-03 02:03:48 +00:00
add
This commit is contained in:
1 parent
364968fae2
commit
1144c32da1
23 files changed
+557
-260
No files matched your search
+96
-10
@@ -6,8 +6,8 @@ var rule = {
|
||||
title:'LIBVIO',
|
||||
模板:'首图2',
|
||||
// host:'https://tv.libvio.cc',
|
||||
host:'https://libvio.app',
|
||||
hostJs:'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src=jsp.pdfh(html,"li:eq(0)&&a:eq(0)&&href");print(src);HOST=src',
|
||||
host:'https://tv.libvio.cc',
|
||||
//hostJs:'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src=jsp.pdfh(html,"li:eq(0)&&a:eq(0)&&href");print(src);HOST=src',
|
||||
// url:'/type/fyclass-fypage.html',
|
||||
url:'/show/fyclassfyfilter.html',
|
||||
// url:'/show_fyclassfyfilter.html',
|
||||
@@ -26,26 +26,112 @@ var rule = {
|
||||
},
|
||||
class_parse:'.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;/(\\d+).html',
|
||||
// class_parse:'.stui-header__menu li;a&&Text;a&&href;/.*_(\\d+).html',
|
||||
tab_exclude:'夸克网盘|百度云盘',
|
||||
tab_exclude: '百度',
|
||||
pagecount:{"27":1},
|
||||
lazy:`js: var html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
|
||||
二级: {
|
||||
"title": ".stui-content__detail .title&&Text;.stui-content__detail p:eq(-2)&&Text",
|
||||
"img": ".stui-content__thumb .lazyload&&data-original",
|
||||
"desc": ".stui-content__detail p:eq(0)&&Text;.stui-content__detail p:eq(1)&&Text;.stui-content__detail p:eq(2)&&Text",
|
||||
"content": ".detail&&Text",
|
||||
"tabs": `js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[];
|
||||
let tabsq=[];
|
||||
let tabsm3u8=[];
|
||||
let d = pdfa(html, 'div.stui-vodlist__head');
|
||||
d.forEach(function(it) {
|
||||
let name = pdfh(it, 'h3&&Text');
|
||||
if (!/(猜你|喜欢|剧情|热播)/.test(name)){
|
||||
log("libvio tabs name>>>>>>>>>>>>>>>" + name);
|
||||
if (name.includes("夸克")){
|
||||
tabsq.push("夸克雲盤");
|
||||
}else if (name.includes("阿里")){
|
||||
tabsq.push("阿里雲盤");
|
||||
}else{
|
||||
tabsm3u8.push(name);
|
||||
}
|
||||
}
|
||||
});
|
||||
if (tabsq.length==1){
|
||||
TABS=TABS.concat(tabsq);
|
||||
}else{
|
||||
let tmpIndex=1;
|
||||
tabsq.forEach(function(it){
|
||||
TABS.push(it+tmpIndex);
|
||||
tmpIndex++;
|
||||
});
|
||||
}
|
||||
TABS=TABS.concat(tabsm3u8);
|
||||
log('libvio TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
"lists":`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
let listq=[];
|
||||
let listm3u8=[];
|
||||
let d = pdfa(html, 'div.stui-vodlist__head');
|
||||
d.forEach(function(it){
|
||||
let name = pdfh(it, 'h3&&Text');
|
||||
if (!/(猜你|喜欢|剧情|热播)/.test(name)){
|
||||
log("libvio tabs name>>>>>>>>>>>>>>>" + name);
|
||||
let durl = pdfa(it, 'ul li');
|
||||
let dd = [];
|
||||
durl.forEach(function(it1){
|
||||
let dhref = pd(it1, 'a&&href', HOST);
|
||||
let dname = pdfh(it1, 'a&&Text');
|
||||
dd.push(dname + "$" + dhref);
|
||||
});
|
||||
if (/(夸克|阿里)/.test(name)){
|
||||
listq.push(dd);
|
||||
}else{
|
||||
listm3u8.push(dd);
|
||||
}
|
||||
}
|
||||
});
|
||||
LISTS=LISTS.concat(listq);
|
||||
LISTS=LISTS.concat(listm3u8);
|
||||
`,
|
||||
},
|
||||
lazy:`js:
|
||||
log("libvio lazy player input>>>>>>>>>>>>"+input);
|
||||
var html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
|
||||
log("libvio lazy player json>>>>>>>>>>>>"+JSON.stringify(html));
|
||||
var url = html.url;
|
||||
var from = html.from;
|
||||
var next = html.link_next;
|
||||
var id = html.id;
|
||||
var nid = html.nid;
|
||||
var paurl = request("https://libvio.cc/static/player/" + from + ".js").match(/ src="(.*?)'/)[1];
|
||||
if (/https/.test(paurl)) {
|
||||
var purl = paurl + url + "&next=" + next + "&id=" + id + "&nid=" + nid;
|
||||
if (/(www.aliyundrive.com|pan.quark.cn)/.test(url)){
|
||||
let confirm = "";
|
||||
if (TABS.length==1){
|
||||
confirm="&confirm=0";
|
||||
}
|
||||
let type="ali";
|
||||
if (url.includes("www.aliyundrive.com")){
|
||||
type = "ali";
|
||||
}else if (url.includes("pan.quark.cn")){
|
||||
type = "quark";
|
||||
}
|
||||
input = {
|
||||
jx: 0,
|
||||
url: request(purl).match(/var .* = '(.*?)'/)[1],
|
||||
url: 'http://127.0.0.1:9978/proxy?do=' + type +'&type=push' + confirm + '&url=' + encodeURIComponent(url),
|
||||
parse: 0
|
||||
}
|
||||
}`,
|
||||
}else{
|
||||
var paurl = request("https://libvio.cc/static/player/" + from + ".js").match(/ src="(.*?)'/)[1];
|
||||
if (/https/.test(paurl)) {
|
||||
var purl = paurl + url + "&next=" + next + "&id=" + id + "&nid=" + nid;
|
||||
input = {
|
||||
jx: 0,
|
||||
url: request(purl).match(/var .* = '(.*?)'/)[1],
|
||||
parse: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
searchUrl:'/index.php/ajax/suggest?mid=1&wd=**&limit=50',
|
||||
detailUrl:'/detail/fyid.html', //非必填,二级详情拼接链接
|
||||
// detailUrl:'/detail_fyid.html', //非必填,二级详情拼接链接
|
||||
// searchUrl:'/search/**----------fypage---.html',
|
||||
搜索:'json:list;name;pic;;id',
|
||||
}
|
||||
}
|
||||
+5
-8
@@ -1,13 +1,12 @@
|
||||
// 自动从 地址发布页 获取&跳转url地址
|
||||
import { Crypto, load, _ } from './lib/cat.js';
|
||||
|
||||
let key = 'czzy';
|
||||
let host = 'https://www.czzy.site'; // 厂长地址发布页
|
||||
// let url = 'https://cz01.cc';
|
||||
let url = '';
|
||||
let url = 'https://cz01.cc';
|
||||
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) {
|
||||
@@ -49,15 +48,13 @@ async function request(reqUrl, referer, mth, data, hd) {
|
||||
async function init(cfg) {
|
||||
siteKey = cfg.skey;
|
||||
siteType = cfg.stype;
|
||||
let html = await request(host);
|
||||
url = html.match(/推荐访问<a href="(.*)"/)[1];
|
||||
console.debug('厂长跳转地址 =====>' + url); // js_debug.log
|
||||
}
|
||||
|
||||
async function home(filter) {
|
||||
let filterObj = {};
|
||||
const html = await request(url + '/movie_bt');
|
||||
const $ = load(html);
|
||||
const series = $('div#beautiful-taxonomy-filters-tax-movie_bt_series > a[cat-url*=movie_bt_series]');
|
||||
const tags = $('div#beautiful-taxonomy-filters-tax-movie_bt_tags > a');
|
||||
let tag = {
|
||||
key: 'tag',
|
||||
@@ -69,7 +66,6 @@ async function home(filter) {
|
||||
}),
|
||||
};
|
||||
tag['init'] = tag.value[0].v;
|
||||
const series = $('div#beautiful-taxonomy-filters-tax-movie_bt_series > a[cat-url*=movie_bt_series]');
|
||||
let classes = _.map(series, (s) => {
|
||||
let typeId = s.attribs['cat-url'];
|
||||
typeId = typeId.substring(typeId.lastIndexOf('/') + 1);
|
||||
@@ -137,6 +133,7 @@ async function detail(id) {
|
||||
const detail = $('ul.moviedteail_list > li');
|
||||
let vod = {
|
||||
vod_id: id,
|
||||
vod_name: $('div.moviedteail_tt > h1').text().trim(),
|
||||
vod_pic: $('div.dyimg img:first').attr('src'),
|
||||
vod_remarks: '',
|
||||
vod_content: stripHtmlTag($('div.yp_context').html()).trim(),
|
||||
|
||||
+46
-8
@@ -7,7 +7,8 @@ if (typeof play_url === "undefined") {
|
||||
var play_url = ""
|
||||
}
|
||||
|
||||
function getLists(html) {
|
||||
function getLists(html)
|
||||
{
|
||||
let src = pdfh(html, ".wp-playlist-script&&Html");
|
||||
src = JSON.parse(src).tracks;
|
||||
let list1 = [];
|
||||
@@ -41,7 +42,9 @@ var data = getLists(html);
|
||||
var list1 = data.list1;
|
||||
var list2 = data.list2;
|
||||
let nums = pdfa(html, "body&&.post-page-numbers");
|
||||
nums.forEach(function(it) {
|
||||
nums.forEach
|
||||
(function(it)
|
||||
{
|
||||
let num = pdfh(it, "body&&Text");
|
||||
log(num);
|
||||
let nurl = input + num + "/";
|
||||
@@ -54,13 +57,29 @@ nums.forEach(function(it) {
|
||||
list1 = list1.concat(data.list1);
|
||||
list2 = list2.concat(data.list2)
|
||||
});
|
||||
|
||||
|
||||
list1 = list1.map(function(item) {
|
||||
return item.title + "$" + play_url + urlencode(item.url + "|" + input + "|" + item.desc)
|
||||
});
|
||||
list2 = list2.map(function(item) {
|
||||
return item.title + "$" + play_url + urlencode(item.url + "|" + input + "|" + item.desc)
|
||||
});
|
||||
LISTS = [list1, list2];
|
||||
LISTS=[];
|
||||
let dd = pdfa(html, 'div.wp-playlist~a');
|
||||
dd.forEach(function(it){
|
||||
let burl = pd(it, 'a&&href', HOST);
|
||||
if (/(pan.quark.cn|www.aliyundrive.com)/.test(burl)){
|
||||
let type="ali";
|
||||
if (burl.includes("www.aliyundrive.com")){
|
||||
type = "ali";
|
||||
}else if (burl.includes("pan.quark.cn")){
|
||||
type = "quark";
|
||||
}
|
||||
LISTS.push([burl+ '$' + play_url + urlencode('http://127.0.0.1:9978/proxy?do='+type+'&type=push&url='+encodeURIComponent(burl)) + '||']);
|
||||
}
|
||||
});
|
||||
LISTS = LISTS.concat([list1, list2]);
|
||||
`;
|
||||
|
||||
var lazy = `js:
|
||||
@@ -126,11 +145,30 @@ var rule={
|
||||
"img":".doulist-item&&img&&data-cfsrc",
|
||||
"desc":".published&&Text",
|
||||
"content":".abstract&&Text",
|
||||
// "tabs":"js:TABS=['国内','海外(貌似不能播放)']",
|
||||
"tabs":"js:TABS=['国内(改Exo播放器)','国内2']",
|
||||
// "lists":"js:log(TABS);let d=[];pdfh=jsp.pdfh;pdfa=jsp.pdfa;if(typeof play_url===\"undefined\"){var play_url=\"\"}function getLists(html){let src=pdfh(html,\".wp-playlist-script&&Html\");src=JSON.parse(src).tracks;let list1=[];let list2=[];src.forEach(function(it){let src0=it.src0;let src1=it.src1;let src2=it.src2;let title=it.caption;let url1=\"https://ddys.tv/getvddr/video?id=\"+src1+\"&dim=1080P+&type=mix\";let url2=\"https://w.ddys.tv\"+src0+\"?ddrkey=\"+src2;let zm=\"https://ddys.tv/subddr/\"+it.subsrc;list1.push({title:title,url:url1,desc:zm});list2.push({title:title,url:url2,desc:zm})});return{list1:list1,list2:list2}}var data=getLists(html);var list1=data.list1;var list2=data.list2;let nums=pdfa(html,\"body&&.post-page-numbers\");nums.forEach(function(it){let num=pdfh(it,\"body&&Text\");log(num);let nurl=input+num+\"/\";if(num==1){return}log(nurl);let html=request(nurl);let data=getLists(html);list1=list1.concat(data.list1);list2=list2.concat(data.list2)});list1=list1.map(function(item){return item.title+\"$\"+play_url+urlencode(item.url+\"|\"+input+\"|\"+item.desc)});list2=list2.map(function(item){return item.title+\"$\"+play_url+urlencode(item.url+\"|\"+input+\"|\"+item.desc)});LISTS=[list1,list2];",
|
||||
// lists:'js:log(TABS);let d=[];pdfh=jsp.pdfh;pdfa=jsp.pdfa;if(typeof play_url==="undefined"){var play_url=""}function getLists(html){let src=pdfh(html,".wp-playlist-script&&Html");src=JSON.parse(src).tracks;let list1=[];let list2=[];src.forEach(function(it){let src0=it.src0;let src1=it.src1;let src2=it.src2;let title=it.caption;let url1="https://ddys.pro/getvddr/video?id="+src1+"&dim=1080P+&type=mix";let url2="https://w.ddys.pro"+src0+"?ddrkey="+src2;let zm="https://ddys.pro/subddr/"+it.subsrc;list1.push({title:title,url:url1,desc:zm});list2.push({title:title,url:url2,desc:zm})});return{list1:list1,list2:list2}}var data=getLists(html);var list1=data.list1;var list2=data.list2;let nums=pdfa(html,"body&&.post-page-numbers");nums.forEach(function(it){let num=pdfh(it,"body&&Text");log(num);let nurl=input+num+"/";if(num==1){return}log(nurl);let html=request(nurl);let data=getLists(html);list1=list1.concat(data.list1);list2=list2.concat(data.list2)});list1=list1.map(function(item){return item.title+"$"+play_url+urlencode(item.url+"|"+input+"|"+item.desc)});list2=list2.map(function(item){return item.title+"$"+play_url+urlencode(item.url+"|"+input+"|"+item.desc)});LISTS=[list1,list2];',
|
||||
"tabs":`js:
|
||||
TABS=[];
|
||||
let d = pdfa(html, 'div.wp-playlist~a');
|
||||
let tabsq=[];
|
||||
d.forEach(function(it){
|
||||
let burl = pd(it, 'a&&href', HOST);
|
||||
if (burl.includes("pan.quark.cn")){
|
||||
tabsq.push("夸克雲盤");
|
||||
}else if (burl.includes("www.aliyundrive.com")){
|
||||
tabsq.push("阿里雲盤");
|
||||
}
|
||||
});
|
||||
if (tabsq.length == 1){
|
||||
TABS=TABS.concat(tabsq);
|
||||
}else{
|
||||
let tmpIndex=1;
|
||||
tabsq.forEach(function(it){
|
||||
TABS.push(it+tmpIndex);
|
||||
tmpIndex++;
|
||||
});
|
||||
}
|
||||
TABS=TABS.concat(['国内(改Exo播放器)','国内2']);
|
||||
`,
|
||||
"lists":lists
|
||||
},
|
||||
搜索:'#main&&article;.post-title&&Text;;.published&&Text;a&&href'
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
var rule = {
|
||||
title:'drpy',
|
||||
host:'https://frodo.douban.com',
|
||||
apidoc:'https://www.doubanapi.com',
|
||||
homeUrl:'',
|
||||
searchUrl:'',
|
||||
searchable:1,
|
||||
quickSearch:1,
|
||||
filterable:1,
|
||||
// 分类链接fypage参数支持1个()表达式
|
||||
url:'/?pg=fypage&class=fyclass&douban=1311269',
|
||||
filter_url:'fl={{fl}}',
|
||||
图片来源:'@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',
|
||||
headers:{
|
||||
"Host": "frodo.douban.com",
|
||||
// "Host": "api.douban.com",
|
||||
"Connection": "Keep-Alive",
|
||||
"Referer": "https://servicewechat.com/wx2f9b06c1de1ccfca/84/page-frame.html",
|
||||
// "content-type": "application/json",
|
||||
"User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 MicroMessenger/7.0.9.501 NetType/WIFI MiniProgramEnv/Windows WindowsWechat"
|
||||
},
|
||||
timeout:5000,
|
||||
class_name:'我的豆瓣&热门电影&热播剧集&热播综艺&电影筛选&电视筛选&电影榜单&电视榜单',
|
||||
class_url:'interests&hot_gaia&tv_hot&show_hot&movie&tv&rank_list_movie&rank_list_tv',
|
||||
filter:{'interests': [{'key': 'status', 'name': '状态', 'value': [{'n': '想看', 'v': 'mark'}, {'n': '在看', 'v': 'doing'}, {'n': '看过', 'v': 'done'}]}, {'key': 'subtype_tag', 'name': '形式', 'value': [{'n': '全部', 'v': ''}, {'n': '电影', 'v': 'movie'}, {'n': '电视', 'v': 'tv'}]}, {'key': 'year_tag', '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': '2010年代', 'v': '2010年代'}, {'n': '2000年代', 'v': '2000年代'}, {'n': '90年代', 'v': '90年代'}, {'n': '80年代', 'v': '80年代'}, {'n': '70年代', 'v': '70年代'}, {'n': '60年代', 'v': '60年代'}, {'n': '更早', 'v': '更早'}]}], 'hot_gaia': [{'key': 'sort', 'name': '排序', 'value': [{'n': '热度', 'v': 'recommend'}, {'n': '最新', 'v': 'time'}, {'n': '评分', 'v': 'rank'}]}, {'key': 'area', 'name': '地区', 'value': [{'n': '全部', 'v': '全部'}, {'n': '华语', 'v': '华语'}, {'n': '欧美', 'v': '欧美'}, {'n': '韩国', 'v': '韩国'}, {'n': '日本', 'v': '日本'}]}], 'tv_hot': [{'key': 'type', 'name': '分类', 'value': [{'n': '综合', 'v': 'tv_hot'}, {'n': '国产剧', 'v': 'tv_domestic'}, {'n': '欧美剧', 'v': 'tv_american'}, {'n': '日剧', 'v': 'tv_japanese'}, {'n': '韩剧', 'v': 'tv_korean'}, {'n': '动画', 'v': 'tv_animation'}]}], 'show_hot': [{'key': 'type', 'name': '分类', 'value': [{'n': '综合', 'v': 'show_hot'}, {'n': '国内', 'v': 'show_domestic'}, {'n': '国外', 'v': 'show_foreign'}]}], 'movie': [{'key': '类型', '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': '短片'}]}, {'key': '地区', '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': '丹麦'}]}, {'key': 'sort', 'name': '排序', 'value': [{'n': '近期热度', 'v': 'T'}, {'n': '首映时间', 'v': 'R'}, {'n': '高分优先', 'v': 'S'}]}, {'key': '年代', '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': '2010年代', 'v': '2010年代'}, {'n': '2000年代', 'v': '2000年代'}, {'n': '90年代', 'v': '90年代'}, {'n': '80年代', 'v': '80年代'}, {'n': '70年代', 'v': '70年代'}, {'n': '60年代', 'v': '60年代'}, {'n': '更早', 'v': '更早'}]}], 'tv': [{'key': '类型', 'name': '类型', 'value': [{'n': '不限', 'v': ''}, {'n': '电视剧', 'v': '电视剧'}, {'n': '综艺', 'v': '综艺'}]}, {'key': '电视剧形式', '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': '音乐'}]}, {'key': '综艺形式', 'name': '综艺形式', 'value': [{'n': '不限', 'v': ''}, {'n': '真人秀', 'v': '真人秀'}, {'n': '脱口秀', 'v': '脱口秀'}, {'n': '音乐', 'v': '音乐'}, {'n': '歌舞'Line truncated
|
||||
limit:20,
|
||||
play_parse:false,
|
||||
推荐:'',
|
||||
推荐:'js:let d=[];let douban_api_host="http://api.douban.com/api/v2";let miniapp_apikey="0ac44ae016490db2204ce0a042db2916";const count=30;function miniapp_request(path,query){try{let url=douban_api_host+path;query.apikey=miniapp_apikey;fetch_params.headers=oheaders;url=buildUrl(url,query);let html=fetch(url,fetch_params);return JSON.parse(html)}catch(e){print("发生了错误:"+e.message);return{}}}function subject_real_time_hotest(){try{let res=miniapp_request("/subject_collection/subject_real_time_hotest/items",{});let lists=[];let arr=res.subject_collection_items||[];arr.forEach(function(item){if(item.type==="movie"||item.type==="tv"){let rating=item.rating?item.rating.value:"暂无评分";let honnor=(item.honor_infos||[]).map(function(it){return it.title}).join("|");lists.append({vod_id:"msearch:"+TYPE,vod_name:item.title||"",vod_pic:item.pic.normal,vod_remarks:rating+" "+honnor})}});return lists}catch(e){print("发生了错误:"+e.message);return[]}}VODS=subject_real_time_hotest();print(VODS);',
|
||||
// 手动调用解析请求json的url,此lazy不方便
|
||||
lazy:'',
|
||||
// 推荐:'.list_item;img&&alt;img&&src;a&&Text;a&&data-float',
|
||||
一级:'',
|
||||
一级:'js:let d=[];let douban=input.split("douban=")[1].split("&")[0];let douban_api_host="http://api.douban.com/api/v2";let miniapp_apikey="0ac44ae016490db2204ce0a042db2916";const count=30;function miniapp_request(path,query){try{let url=douban_api_host+path;query.apikey=miniapp_apikey;fetch_params.headers=oheaders;url=buildUrl(url,query);let html=fetch(url,fetch_params);if(/request_error/.test(html)){print(html)}return JSON.parse(html)}catch(e){print("发生了错误:"+e.message);return{}}}function cate_filter(d,douban){douban=douban||"";try{let res={};if(MY_CATE==="interests"){if(douban){let status=MY_FL.status||"mark";let subtype_tag=MY_FL.subtype_tag||"";let year_tag=MY_FL.year_tag||"全部";let path="/user/"+douban+"/interests";res=miniapp_request(path,{type:"movie",status:status,subtype_tag:subtype_tag,year_tag:year_tag,start:(MY_PAGE-1)*count,count:count})}else{return{}}}else if(MY_CATE==="hot_gaia"){let sort=MY_FL.sort||"recommend";let area=MY_FL.area||"全部";let path="/movie/"+MY_CATE;res=miniapp_request(path,{area:area,sort:sort,start:(MY_PAGE-1)*count,count:count})}else if(MY_CATE==="tv_hot"||MY_CATE==="show_hot"){let stype=MY_FL.type||MY_CATE;let path="/subject_collection/"+stype+"/items";res=miniapp_request(path,{start:(MY_PAGE-1)*count,count:count})}else if(MY_CATE.startsWith("rank_list")){let id=MY_CATE==="rank_list_movie"?"movie_real_time_hotest":"tv_real_time_hotest";id=MY_FL.榜单||id;let path="/subject_collection/"+id+"/items";res=miniapp_request(path,{start:(MY_PAGE-1)*count,count:count})}else{let path="/"+MY_CATE+"/recommend";let selected_categories;let tags;let sort;if(Object.keys(MY_FL).length>0){sort=MY_FL.sort||"T";tags=Object.values(MY_FL).join(",");if(MY_CATE==="movie"){selected_categories={"类型":MY_FL.类型||"","地区":MY_FL.地区||""}}else{selected_categories={"类型":MY_FL.类型||"","形式":MY_FL.类型?MY_FL.类型+"地区":"","地区":MY_FL.地区||""}}}else{sort="T";tags="";if(MY_CATE==="movie"){selected_categories={"类型":"","地区":""}}else{selected_categories={"类型":"","形式":"","地区":""}}}let params={tags:tags,sort:sort,refresh:0,selected_categories:stringify(selected_categories),start:(MY_PAGE-1)*count,count:count};res=miniapp_request(path,params)}let result={page:MY_PAGE,pagecount:Math.ceil(res.total/count),limit:count,total:res.total};let items=[];if(/^rank_list|tv_hot|show_hot/.test(MY_CATE)){items=res["subject_collection_items"]}else if(MY_CATE==="interests"){res["interests"].forEach(function(it){items.push(it.subject)})}else{items=res.items}let lists=[];items.forEach(function(item){if(item.type==="movie"||item.type==="tv"){let rating=item.rating?item.rating.value:"";let rat_str=rating||"暂无评分";let title=item.title;let honor=item.honor_infos||[];let honor_str=honor.map(function(it){return it.title}).join("|");let vod_obj={vod_name:title!=="未知电影"?title:"暂不支持展示",vod_pic:item.pic.normal,vod_remarks:rat_str+" "+honor_str};let vod_obj_d={url:item.type+"$"+item.id,title:title!=="未知电影"?title:"暂不支持展示",pic_url:item.pic.normal,desc:rat_str+" "+honor_str};lists.push(vod_obj);d.push(vod_obj_d)}});result.list=lists;return result}catch(e){print(e.message)}return{}}let res=cate_filter(d,douban);setResult2(res);',
|
||||
二级:'',
|
||||
搜索:'',
|
||||
}
|
||||
+5
-1
@@ -18,7 +18,11 @@ VOD.vod_name = pdfh(html1, "h2&&Text");
|
||||
VOD.vod_director = "";
|
||||
VOD.vod_content = "";
|
||||
log(VOD);
|
||||
input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2";
|
||||
var v_tks = '';
|
||||
let script = pdfa(html1,'script').find(it=>it.includes('v_tks+=')).replace(/<script>|<\\/script>/g,'');
|
||||
eval(script);
|
||||
input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2"+"&token="+v_tks;
|
||||
// input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2";
|
||||
let html = request(input, {
|
||||
headers: {
|
||||
'User-Agent':'PC_UA',
|
||||
|
||||
+5
-1
@@ -17,7 +17,11 @@ try {
|
||||
VOD.vod_director = "";
|
||||
VOD.vod_content = "";
|
||||
log(VOD);
|
||||
input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2";
|
||||
var v_tks = '';
|
||||
let script = pdfa(html1,'script').find(it=>it.includes('v_tks+=')).replace(/<script>|<\\/script>/g,'');
|
||||
eval(script);
|
||||
input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2"+"&token="+v_tks;
|
||||
// input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2";
|
||||
let html = request(input, {
|
||||
headers: {
|
||||
'User-Agent':'PC_UA',
|
||||
|
||||
@@ -32,7 +32,6 @@ var rule = {
|
||||
lazy:'',
|
||||
limit:6,
|
||||
推荐:'',
|
||||
一级:'',
|
||||
一级:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let d = [];
|
||||
|
||||
+3
-3
@@ -4,12 +4,12 @@ var rule = {
|
||||
//homeUrl:'/',
|
||||
//url: '/fyclass/page/fypage/?',
|
||||
host:'http://192.168.101.1:10078',
|
||||
homeUrl:'/p/0/socks5%3A%2F%2F192.168.101.1%3A1080/https://www.meijumi.net/',
|
||||
url: '/p/0/socks5%3A%2F%2F192.168.101.1%3A1080/https://www.meijumi.net/fyclass/page/fypage/?',
|
||||
homeUrl:'/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.meijumi.net/',
|
||||
url: '/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.meijumi.net/fyclass/page/fypage/?',
|
||||
filter_url:'{{fl.class}}',
|
||||
filter:{
|
||||
},
|
||||
searchUrl: '/p/0/socks5%3A%2F%2F192.168.101.1%3A1080/https://www.meijumi.net/?s=**',
|
||||
searchUrl: '/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.meijumi.net/?s=**',
|
||||
searchable:2,
|
||||
quickSearch:0,
|
||||
filterable:0,
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
function _0x48eb72(_0x7c81e6,_0x31958e,_0x272aaa,_0x273053,_0x2803ad){return _0x26cc(_0x7c81e6- -0x253,_0x272aaa);}function _0xc536df(_0x525441,_0x5b38fa,_0xbc0962,_0x4d83cd,_0x51c057){return _0x2ed3(_0x4d83cd- -0x175,_0x51c057);}(function(_0x5ba705,_0x498cdd){function _0x46a9c8(_0x3684d1,_0x199a54,_0x1177db,_0x3f993f,_0x51fed2){return _0x24cd(_0x3684d1- -0x1e,_0x3f993f);}function _0x49663a(_0x28b378,_0x4b0fec,_0x567ab1,_0x4490c2,_0x5f16a0){return _0x2ed3(_0x4b0fec- -0x35e,_0x567ab1);}function _0x5d5fb7(_0x336c64,_0x3cf3dc,_0x354674,_0x23c096,_0x51be9a){return _0x2ed3(_0x336c64- -0x1fb,_0x354674);}function _0x386c5d(_0x589bdd,_0x8aa7e6,_0x40bd9c,_0x5379f9,_0x3089d3){return _0x26cc(_0x589bdd- -0x207,_0x3089d3);}function _0x569d41(_0x49571f,_0x11c266,_0xc96197,_0x37fbc3,_0x7b8618){return _0x24cd(_0x11c266-0x99,_0x49571f);}function _0xac2470(_0x518612,_0x52222c,_0x1be176,_0x559235,_0x31ff02){return _0x26cc(_0x31ff02- -0x22b,_0x1be176);}function _0x39f8e3(_0x4d01db,_0x456cbc,_0x181bba,_0x5ac8d0,_0x2d50a1){return _0x2ed3(_0x2d50a1-0x3c0,_0x456cbc);}function _0xdd7a62(_0x510528,_0x4c52ee,_0x53232f,_0x15565c,_0x5ef12b){return _0x24cd(_0x15565c- -0x27a,_0x4c52ee);}function _0x56bc0b(_0x1a7666,_0x40c40e,_0x3ef0ee,_0x4f7505,_0x44516b){return _0x26cc(_0x1a7666- -0xa6,_0x3ef0ee);}var _0xdee012=_0x5ba705();function _0x5e8caf(_0x130308,_0x43ff7a,_0x2ff2e7,_0x32a5e3,_0xcfe2da){return _0x2ed3(_0x32a5e3-0x28,_0x43ff7a);}function _0x4ae421(_0xfbcb26,_0x49682c,_0x5e1ffa,_0x588f07,_0x2680a9){return _0x2ed3(_0x588f07-0x25a,_0x5e1ffa);}while(!![]){try{var _0x5d2fd9=-parseInt(_0x386c5d(-0x7c,-0x5c,-0xb1,0xc5,'XZN6'))/(0xdf6*-0x1+-0x79*0x3f+0x2bbe)*(parseInt(_0x56bc0b(0x227,0x163,'h8Sz',0x3e9,0x93))/(0x1236+0x10af+-0x22e3))+parseInt(_0x5d5fb7(0x151,0x53,0x74,0x222,0x12a))/(-0x608+-0xe*-0x27e+-0x1cd9)+-parseInt(_0x5d5fb7(-0x9d,0x75,-0x132,0x11d,-0x268))/(-0x17*0x125+-0x21b9+-0x1f*-0x1f0)*(parseInt(_0x5d5fb7(-0xae,-0xe6,-0x85,0xb2,-0x157))/(-0xe50+-0x323*-0x5+0x1*-0x15a))+-parseInt(_0x4ae421(0x7f7,0x57b,0x926,0x751,0x837))/(-0x792+0xb9*0x11+-0x1*0x4b1)*(-parseInt(_0x46a9c8(0x296,0x316,0xcb,0x1ff,0x44d))/(0x56*0x70+0x1923+0xa*-0x646))+-parseInt(_0x4ae421(0x305,0x592,0x4a0,0x3ed,0x234))/(0x7f5+0x52*0x40+0x1*-0x1c6d)*(-parseInt(_0xdd7a62(-0xa2,0x225,0x55,0xe4,0x2a2))/(0x3*-0xbf2+-0x253b+0x491a))+-parseInt(_0x56bc0b(0x418,0x262,'aNMf',0x460,0x45d))/(-0x1*0x3b5+0x20*0x33+0x1*-0x2a1)+parseInt(_0x46a9c8(0xfd,0x234,0x1cd,0x1f0,0x1a4))/(-0x64e*0x1+0x75*0x3b+-0x179*0xe)*(parseInt(_0x5d5fb7(-0xa,0x4a,-0x1d0,-0x11b,0x179))/(-0xada+0x14b3+-0xc1*0xd));if(_0x5d2fd9===_0x498cdd)break;else _0xdee012['push'](_0xdee012['shift']());}catch(_0x1d0564){_0xdee012['push'](_0xdee012['shift']());}}}(_0x2720,0x1*0x57ffa+0x148310+0x6416b*-0x2));var _0x59e87d=(function(){var _0x5065d4={};function _0x126d89(_0x5889fb,_0x436e3b,_0x59737b,_0xd6892a,_0x7f4c70){return _0x24cd(_0x5889fb-0x176,_0x59737b);}_0x5065d4[_0x2727d8(0x4c2,0x389,0x604,0x65a,0x4e5)]=_0x513412(0x266,0xfa,0x245,'a@XQ',0x13b)+_0x513412(0x54c,0x4dd,0x69f,'88j*',0x695);function _0x2014f0(_0x85ca21,_0x30fa20,_0x569f1f,_0x11c52e,_0x18095a){return _0x2ed3(_0x11c52e- -0x114,_0x18095a);}function _0x419ba4(_0x703b8d,_0x425580,_0x513c1f,_0x4dc45f,_0x5a8a89){return _0x2ed3(_0x703b8d-0x295,_0x513c1f);}_0x5065d4[_0x4fc2aa(-0x170,-0xa,0x25,-0x26e,-0x8b)]=_0x5ae003(0x4f1,0x69a,'RPBh',0x670,0x575)+_0x3877b0(0x649,0x68e,0x410,'7AR[',0x52e),_0x5065d4[_0x4fc2aa(0x158,0x2df,0x11,0x43,0x264)]=_0x126d89(0x536,0x4ad,0x533,0x50e,0x397)+'mg';function _0xbc160d(_0x2bbe97,_0xc153d8,_0x5a2fb4,_0x290da2,_0x3ec791){return _0x24cd(_0x290da2- -0x30b,_0x5a2fb4);}_0x5065d4[_0x50da59(-0xf,0x182,-0x139,0x90,0x23a)]=_0x3a7794(0x184,0x17f,0x29b,0xc9,0x302)+_0x513412(0x24b,0x31e,0x180,'^I*r',0xda)+'t';function _0x3a7794(_0x29eb10,_0x8b3ab0,_0x29f9e7,_0x1b4905,_0x59f1f4){return _0x2ed3(_0x29f9e7- -0x1a5,_0x29eb10);}function _0x5ae003(_0x785a3c,_0x52956a,_0x32b41b,_0x5b3bdb,_0x186655){return _0x26cc(_0x785a3c-0x2a4,_0x32b41b);}_0x5065d4[_0x4fc2aa(-0x1a3,-0x2a7,-0x289,-0x1c1,-0x11)]=function(_0x564b1b,_0x236742){return _0x564b1b===_0x236742;},_0x5065d4[_0x50da59(0x265,0x307,0x2ba,0x208,0x1d6)]=_0x2727d8(0x3e9,0x13f,0x23e,0xb8,0x298),_0x5065d4[_0x54adba(0x469,0x44b,0x2a0,0x153,0x2be)]=_0x5aaab2('KL!n',0xcd,0x3bd,0x216,0x39e)+_0x54adba(0x4a6,0x3d6,0x3d1,0x598,0x485)+_0x5aaab2('!L)2',0x222,0x32e,0x3a1,0x2be),_0x5065d4[_0x2014f0(-0x116,0x3,0xd8,0x5e,0x230)]=function(_0x5a8b6a,_0x21a56a){return _0x5a8b6a>_0x21a56a;},_0x5065d4[_0x3a7794(0x81,0x31b,0x1b8,0x2c5,0x2a6)]=_0x5ae003(0x4fb,0x440,'oumq',0x367,0x490)+_0x5ae003(0x480,0x3ce,'fp!p',0x3aa,0x45d)+'s';function _0x3877b0(_0x18b291,_0x3e4965,_0x3f508c,_0x1830f1,_0x5c6f60){return _0x26cc(_0x5c6f60-0x11d,_0x1830f1);}function _0x4fc2aa(_0x48aa84,_0xdfd9a9,_0x1cd87c,_0x481f72,_0x157834){return _0x2ed3(_0x48aa84- -0x321,_0x1cd87c);}_0x5065d4[_0x3877b0(0x1c5,0x409,0x3ea,'yv@9',0x267)]=_0x54adba(0x1fa,0x17c,0x311,0x2af,0x464);function _0x513412(_0x1d43e0,_0x2165f5,_0x5ed5f1,_0x2241b2,_0x1812c4){returLine truncated
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
var rule = {
|
||||
title:'团长资源',
|
||||
host:'https://t-rex.tzfile.com',
|
||||
homeUrl:'/',
|
||||
url: '/fyclass/page/fypage?',
|
||||
filter_url:'{{fl.class}}',
|
||||
filter:{
|
||||
},
|
||||
searchUrl: '/?s=**',
|
||||
searchable:2,
|
||||
quickSearch:0,
|
||||
filterable:0,
|
||||
headers:{
|
||||
'User-Agent': 'PC_UA',
|
||||
'Accept': '*/*',
|
||||
'Referer': 'https://t-rex.tzfile.com/'
|
||||
},
|
||||
图片来源:'@Headers={"Accept":"*/*","Referer":"https://t-rex.tzfile.com/","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36"}',
|
||||
timeout:5000,
|
||||
class_name:'电影&电视剧&动画&纪录片演唱会&真人秀综艺',
|
||||
class_url:'movies&tvshow&animation&faction&show',
|
||||
play_parse:true,
|
||||
play_json:[{
|
||||
re:'*',
|
||||
json:{
|
||||
parse:0,
|
||||
jx:0
|
||||
}
|
||||
}],
|
||||
lazy:'',
|
||||
limit:6,
|
||||
// 推荐:'main#main article:has(img);a&&title;img&&data-src;div.entry-wrapper a&&Text;a&&href',
|
||||
推荐:'*',
|
||||
一级:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let d = [];
|
||||
log("tzfiles input>>>>>>>>>>>>>>"+input);
|
||||
let html = request(input);
|
||||
//log("tzfiles 1level html>>>>>>>>>>>>>>"+html);
|
||||
let list = pdfa(html, 'main#main article:has(img)');
|
||||
list.forEach(function(it) {
|
||||
d.push({
|
||||
title: pdfh(it, 'a&&title'),
|
||||
desc: pdfh(it, 'div.entry-wrapper a&&Text'),
|
||||
pic_url: 'http://127.0.0.1:10079/i/0/s/'+pd(it, 'img&&data-src', HOST),
|
||||
url: pd(it, 'a&&href', HOST)
|
||||
});
|
||||
})
|
||||
setResult(d);
|
||||
`,
|
||||
//一级:`js:
|
||||
//let html=request(input);
|
||||
//log("html>>>>>>>>>>>>>>>>"+html);
|
||||
//`,
|
||||
二级:{
|
||||
title:"#app .container header h1&&Text",
|
||||
img:"#main article div.entry-content img&&src",
|
||||
desc:"#app .container header .meta-date time&&datetime",
|
||||
content:"#main article .entry-content&&Text",
|
||||
tabs:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[];
|
||||
let d = pdfa(html, '#main article div.entry-content p');
|
||||
let tabsq=[];
|
||||
d.forEach(function(it) {
|
||||
let purl = pd(it, 'a&&href', HOST);
|
||||
if (purl.includes("pan.quark.cn")){
|
||||
tabsq.push("夸克雲盤");
|
||||
} else if (purl.includes("www.aliyundrive.com")){
|
||||
tabsq.push("阿里雲盤");
|
||||
}
|
||||
});
|
||||
if (tabsq.length==1){
|
||||
TABS=tabsq;
|
||||
}else{
|
||||
let tmpIndex=1;
|
||||
tabsq.forEach(function(it){
|
||||
TABS.push(it+tmpIndex);
|
||||
tmpIndex++;
|
||||
});
|
||||
}
|
||||
log('tzfile TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
lists:`js:
|
||||
log(TABS);
|
||||
LISTS=[];
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let d = pdfa(html, '#main article div.entry-content p');
|
||||
d.forEach(function(it) {
|
||||
let purl = pd(it, 'a&&href', HOST);
|
||||
if (/(pan.quark.cn|www.aliyundrive.com)/.test(purl)){
|
||||
let type="ali";
|
||||
if (purl.includes("pan.quark.cn")){
|
||||
type="quark";
|
||||
} else if (purl.includes("www.aliyundrive.com")){
|
||||
type="ali";
|
||||
}
|
||||
let confirm="";
|
||||
if (TABS.length==1){
|
||||
confirm="&confirm=0";
|
||||
}
|
||||
LISTS.push([purl+'$'+'http://127.0.0.1:9978/proxy?do='+type+'&type=push'+confirm+'&url='+encodeURIComponent(purl)]);
|
||||
}
|
||||
});
|
||||
`,
|
||||
|
||||
},
|
||||
搜索:'main#main div.container article:has(img);a&&title;img&&data-src;div.entry-wrapper a&&Text;a&&href',
|
||||
}
|
||||
+14
-3
@@ -13,7 +13,8 @@ var rule = {
|
||||
headers:{
|
||||
'User-Agent': PC_UA,
|
||||
'Accept': '*/*',
|
||||
'Referer': 'https://yyets.click/'
|
||||
'Referer': 'https://yyets.click/',
|
||||
'Cookie':'http://127.0.0.1:9978/file/tvfan/yyets.txt',
|
||||
},
|
||||
timeout:5000,
|
||||
class_name:'',
|
||||
@@ -38,8 +39,18 @@ VOD.vod_content = MY_URL;
|
||||
VOD.vod_play_url = "雲盤$" + detailUrl;
|
||||
`,
|
||||
搜索:`js:
|
||||
let new_html=request(rule.homeUrl + 'api/resource?keyword=' + encodeURIComponent(KEY) + '&type=default');
|
||||
log("yyets search result>>>>>>>>>>>>>>>" + new_html);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
if (rule_fetch_params.headers.Cookie.startsWith("http")){
|
||||
rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
|
||||
let cookie = rule_fetch_params.headers.Cookie;
|
||||
setItem(RULE_CK, cookie);
|
||||
};
|
||||
log('yyets search cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||
_fetch_params.headers.Referer = 'http://yyets.click/search?keyword=' + encodeURIComponent(KEY) + '&type=default';
|
||||
log('yyets search params>>>>>>>>>>>>>>>' + JSON.stringify(_fetch_params));
|
||||
let new_html=request(rule.homeUrl + 'api/resource?keyword=' + encodeURIComponent(KEY) + '&type=default', _fetch_params);
|
||||
//log("yyets search result>>>>>>>>>>>>>>>" + new_html);
|
||||
let json=JSON.parse(new_html);
|
||||
let d=[];
|
||||
for(const it in json.comment){
|
||||
|
||||
+14
-3
@@ -13,7 +13,8 @@ var rule = {
|
||||
headers:{
|
||||
'User-Agent': PC_UA,
|
||||
'Accept': '*/*',
|
||||
'Referer': 'https://yyets.click/'
|
||||
'Referer': 'https://yyets.click/',
|
||||
'Cookie':'http://127.0.0.1:9978/file/tvfan/yyets.txt',
|
||||
},
|
||||
timeout:5000,
|
||||
class_name:'',
|
||||
@@ -38,8 +39,18 @@ VOD.vod_content = MY_URL;
|
||||
VOD.vod_play_url = "雲盤$" + detailUrl;
|
||||
`,
|
||||
搜索:`js:
|
||||
let new_html=request(rule.homeUrl + 'api/resource?keyword=' + encodeURIComponent(KEY) + '&type=default');
|
||||
log("yyets search result>>>>>>>>>>>>>>>" + new_html);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
if (rule_fetch_params.headers.Cookie.startsWith("http")){
|
||||
rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
|
||||
let cookie = rule_fetch_params.headers.Cookie;
|
||||
setItem(RULE_CK, cookie);
|
||||
};
|
||||
log('yyets search cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||
_fetch_params.headers.Referer = 'http://yyets.click/search?keyword=' + encodeURIComponent(KEY) + '&type=default';
|
||||
log('yyets search params>>>>>>>>>>>>>>>' + JSON.stringify(_fetch_params));
|
||||
let new_html=request(rule.homeUrl + 'api/resource?keyword=' + encodeURIComponent(KEY) + '&type=default', _fetch_params);
|
||||
//log("yyets search result>>>>>>>>>>>>>>>" + new_html);
|
||||
let json=JSON.parse(new_html);
|
||||
let d=[];
|
||||
for(const it in json.comment){
|
||||
|
||||
Reference in new issue
Block a user