mirror of
https://github.com/qist/tvbox.git
synced 2025-01-24 11:24:52 +08:00
add jsp
This commit is contained in:
parent
783311b8a8
commit
3039e90399
@ -78,6 +78,7 @@
|
|||||||
{"key":"百度","name":"百度","type":1,"api":"https://api.apibdzy.com/api.php/provide/vod?ac=list","searchable":1,"filterable":0,"categories":["国产动漫","日韩动漫","大陆剧","欧美剧","韩剧","日剧","动作片","喜剧片","爱情片","科幻片","恐怖片","剧情片","战争片"]},
|
{"key":"百度","name":"百度","type":1,"api":"https://api.apibdzy.com/api.php/provide/vod?ac=list","searchable":1,"filterable":0,"categories":["国产动漫","日韩动漫","大陆剧","欧美剧","韩剧","日剧","动作片","喜剧片","爱情片","科幻片","恐怖片","剧情片","战争片"]},
|
||||||
{"key":"暴風","name":"影视 | 暴風[直连]","type":1,"api":"https://bfzyapi.com/api.php/provide/vod/?ac=list","searchable":1,"changeable":1},
|
{"key":"暴風","name":"影视 | 暴風[直连]","type":1,"api":"https://bfzyapi.com/api.php/provide/vod/?ac=list","searchable":1,"changeable":1},
|
||||||
|
|
||||||
|
{"key":"技术派","name":"技术派┃直连","type":3,"api":"./lib/drpy2.min.js","ext":"./js/jsp.js"},
|
||||||
{"key":"drpy_js_磁力熊搜索","name":"搜索 | 磁力熊[js]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/cilixiong.js","searchable":0,"quickSearch":0,"changeable":1},
|
{"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":"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":1,"ext":"./js/荐片.js", "timeout":30},
|
{"key":"drpy_js_荐片","name":"影视 | 荐片[js]","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":1,"ext":"./js/荐片.js", "timeout":30},
|
||||||
|
97
js/jsp.js
Normal file
97
js/jsp.js
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
globalThis.getHeaders= function(input){
|
||||||
|
let headers = {
|
||||||
|
'User-Agent': 'okhttp/4.1.0'
|
||||||
|
};
|
||||||
|
return headers
|
||||||
|
}
|
||||||
|
var rule = {
|
||||||
|
title:'点播',
|
||||||
|
host:'http://tv.jsp47.com',
|
||||||
|
homeUrl:'',
|
||||||
|
//searchUrl:'https://www.suying.lol/index.php/vod/search.html?wd=**',
|
||||||
|
searchUrl:'https://search.video.iqiyi.com/o?if=html5&key=**&pageNum=fypage&pos=1&pageSize=25&site=iqiyi',
|
||||||
|
searchable:2,
|
||||||
|
quickSearch:1,
|
||||||
|
multi:1,
|
||||||
|
filterable:1,
|
||||||
|
headers:{
|
||||||
|
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36'
|
||||||
|
},
|
||||||
|
timeout:5000,
|
||||||
|
limit:20,
|
||||||
|
play_parse:true,
|
||||||
|
lazy:"",
|
||||||
|
推荐:"",
|
||||||
|
一级:"",
|
||||||
|
二级:`js:
|
||||||
|
let d = [];
|
||||||
|
try {
|
||||||
|
let html = request(input, {
|
||||||
|
headers: getHeaders(url)
|
||||||
|
});
|
||||||
|
let json = JSON.parse(html).data;
|
||||||
|
VOD = {
|
||||||
|
vod_name: "",
|
||||||
|
type_name: "",
|
||||||
|
vod_actor: "",
|
||||||
|
vod_year: "",
|
||||||
|
vod_content: "",
|
||||||
|
vod_remarks: "",
|
||||||
|
vod_pic: ""
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
VOD.type_name = "";
|
||||||
|
|
||||||
|
VOD.vod_actor = "";
|
||||||
|
VOD.vod_content = "特别提醒:ㅤ友情提示您请勿相信影片中的广告,以免上当受骗";
|
||||||
|
let playData = json;
|
||||||
|
let playMap = {};
|
||||||
|
playData.forEach(function(it, index) {
|
||||||
|
VOD.vod_name =it.name;
|
||||||
|
VOD.vod_pic = "http://114.100.48.52:18008/movjpg/" + it.name + ".jpg";
|
||||||
|
let names = it.name +" ("+ (index+1) +")";
|
||||||
|
let playEsp = it.source.eps;
|
||||||
|
playEsp.forEach(function(it) {
|
||||||
|
let source = names;
|
||||||
|
if (!playMap.hasOwnProperty(source)) {
|
||||||
|
playMap[source] = []
|
||||||
|
}
|
||||||
|
playMap[source].append(it['name'].strip() + '$' + it['url']);
|
||||||
|
|
||||||
|
})
|
||||||
|
})
|
||||||
|
let playFrom = [];
|
||||||
|
let playList = [];
|
||||||
|
Object.keys(playMap)
|
||||||
|
.forEach(function(key) {
|
||||||
|
playFrom.append(key);
|
||||||
|
playList.append(playMap[key].join('#'))
|
||||||
|
});
|
||||||
|
let vod_play_from = playFrom.join('$$$');
|
||||||
|
let vod_play_url = playList.join('$$$');
|
||||||
|
VOD['vod_play_from'] = vod_play_from;
|
||||||
|
VOD['vod_play_url'] = vod_play_url
|
||||||
|
} catch (e) {
|
||||||
|
log('获取二级详情页发生错误:' + e.message)
|
||||||
|
}
|
||||||
|
`,
|
||||||
|
搜索:`js:
|
||||||
|
let d = [];
|
||||||
|
let html = request(input);
|
||||||
|
let json = JSON.parse(html);
|
||||||
|
json.data.docinfos.forEach(function(data) {
|
||||||
|
let channelName = data.albumDocInfo.channel.split(',')[0];
|
||||||
|
if (channelName.includes('电影') || channelName.includes('电视剧') || channelName.includes('综艺') || channelName.includes('动漫') || channelName.includes('少儿')) {
|
||||||
|
d.push({
|
||||||
|
url: "https://www.tycng.com/jsp.php?jx=" + data.albumDocInfo.albumTitle,
|
||||||
|
title: data.albumDocInfo.albumTitle,
|
||||||
|
img: data.albumDocInfo.albumVImage,
|
||||||
|
content:data.albumDocInfo.channel,
|
||||||
|
desc: data.albumDocInfo.tvFocus
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
setResult(d);
|
||||||
|
`
|
||||||
|
}
|
1
jsm.json
1
jsm.json
@ -80,6 +80,7 @@
|
|||||||
{"key":"百度","name":"百度","type":1,"api":"https://api.apibdzy.com/api.php/provide/vod?ac=list","searchable":1,"filterable":0,"categories":["国产动漫","日韩动漫","大陆剧","欧美剧","韩剧","日剧","动作片","喜剧片","爱情片","科幻片","恐怖片","剧情片","战争片"]},
|
{"key":"百度","name":"百度","type":1,"api":"https://api.apibdzy.com/api.php/provide/vod?ac=list","searchable":1,"filterable":0,"categories":["国产动漫","日韩动漫","大陆剧","欧美剧","韩剧","日剧","动作片","喜剧片","爱情片","科幻片","恐怖片","剧情片","战争片"]},
|
||||||
{"key":"暴風","name":"影视 | 暴風[直连]","type":1,"api":"https://bfzyapi.com/api.php/provide/vod/?ac=list","searchable":1,"changeable":1},
|
{"key":"暴風","name":"影视 | 暴風[直连]","type":1,"api":"https://bfzyapi.com/api.php/provide/vod/?ac=list","searchable":1,"changeable":1},
|
||||||
|
|
||||||
|
{"key":"技术派","name":"技术派┃直连","type":3,"api":"./lib/drpy2.min.js","ext":"./js/jsp.js"},
|
||||||
{"key":"drpy_js_磁力熊搜索","name":"搜索 | 磁力熊[js]","type":3,"api":"./lib/drpy2.min.js","ext":"./js/cilixiong.js","searchable":0,"quickSearch":0,"changeable":1},
|
{"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":"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":1,"ext":"./js/荐片.js", "timeout":30},
|
{"key":"drpy_js_荐片","name":"影视 | 荐片[js]","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":1,"ext":"./js/荐片.js", "timeout":30},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user