mirror of
https://github.com/qist/tvbox.git
synced 2025-02-02 10:14:50 +08:00
去广告
This commit is contained in:
parent
5da60b690f
commit
8eec88380b
@ -365,6 +365,7 @@
|
|||||||
{"name":"海外看","hosts":["haiwaikan"],"regex":["8.16","8.1748","10.0099","10.3333","10.85","12.33","16.0599"]},
|
{"name":"海外看","hosts":["haiwaikan"],"regex":["8.16","8.1748","10.0099","10.3333","10.85","12.33","16.0599"]},
|
||||||
{"name":"索尼","hosts":["suonizy"],"regex":["15.1666","15.2666"]},
|
{"name":"索尼","hosts":["suonizy"],"regex":["15.1666","15.2666"]},
|
||||||
{"name":"暴風","hosts":["bfzy"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:3,[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
{"name":"暴風","hosts":["bfzy"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:3,[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
||||||
|
{"name":"卧龙影视资源","hosts":["cdn.wl*"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:.*?,[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
||||||
{"name":"ikun资源","hosts":["bfikuncdn"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXT-X-KEY:METHOD=NONE\\r*\\n*#EXTINF:.*?,[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
{"name":"ikun资源","hosts":["bfikuncdn"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXT-X-KEY:METHOD=NONE\\r*\\n*#EXTINF:.*?,[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
||||||
{"name":"星星","hosts":["aws.ulivetv.net"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:8,[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
{"name":"星星","hosts":["aws.ulivetv.net"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:8,[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
||||||
{"name":"量子广告","hosts":["vip.lz","hd.lz",".cdnlz",".cdnlz*"],"regex":["#EXTINF.*?\\s+[a-z0-9]{18}\\.ts","[a-z0-9]{18}\\.ts\\s+","#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF.*?\\s+[a-z0-9]{18}\\.ts[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
{"name":"量子广告","hosts":["vip.lz","hd.lz",".cdnlz",".cdnlz*"],"regex":["#EXTINF.*?\\s+[a-z0-9]{18}\\.ts","[a-z0-9]{18}\\.ts\\s+","#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF.*?\\s+[a-z0-9]{18}\\.ts[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
||||||
|
89
js/caiji.js
89
js/caiji.js
@ -8,7 +8,6 @@ var rule = {
|
|||||||
title:'点播',
|
title:'点播',
|
||||||
host:'http://tv.jsp47.com',
|
host:'http://tv.jsp47.com',
|
||||||
homeUrl:'',
|
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',
|
searchUrl:'https://search.video.iqiyi.com/o?if=html5&key=**&pageNum=fypage&pos=1&pageSize=25&site=iqiyi',
|
||||||
searchable:2,
|
searchable:2,
|
||||||
quickSearch:1,
|
quickSearch:1,
|
||||||
@ -24,65 +23,61 @@ var rule = {
|
|||||||
推荐:"",
|
推荐:"",
|
||||||
一级:"",
|
一级:"",
|
||||||
二级:`js:
|
二级:`js:
|
||||||
let d = [];
|
let d = [];
|
||||||
try {
|
try {
|
||||||
let html = request(input, {
|
let html = request(input, {
|
||||||
headers: getHeaders(url)
|
headers: getHeaders(url)
|
||||||
});
|
});
|
||||||
let json = JSON.parse(html).data;
|
let json = JSON.parse(html);
|
||||||
VOD = {
|
VOD = {
|
||||||
vod_name: "",
|
vod_name: "",
|
||||||
type_name: "",
|
type_name: "",
|
||||||
vod_actor: "",
|
vod_actor: "",
|
||||||
vod_year: "",
|
vod_year: "",
|
||||||
vod_content: "",
|
vod_content: "",
|
||||||
vod_remarks: "",
|
vod_remarks: "",
|
||||||
vod_pic: ""
|
vod_pic: ""
|
||||||
};
|
};
|
||||||
|
let playData = json.data;
|
||||||
|
let playMap = {};
|
||||||
VOD.type_name = "";
|
playData.forEach(function(it, index) {
|
||||||
|
VOD.vod_name =it.name;
|
||||||
VOD.vod_actor = "";
|
VOD.type_name = it.class ? it.class+" 线路:"+json.portname : "未知 线路:"+json.portname;
|
||||||
VOD.vod_content = "特别提醒:ㅤ友情提示您请勿相信影片中的广告,以免上当受骗";
|
VOD.vod_actor = it.actor;
|
||||||
let playData = json;
|
VOD.vod_content = it.content ? it.content : "特别提醒:ㅤ友情提示您请勿相信影片中的广告,以免上当受骗";
|
||||||
let playMap = {};
|
VOD.vod_year = it.year;
|
||||||
playData.forEach(function(it, index) {
|
VOD.vod_pic = it.pic ? it.pic : "http://114.100.48.52:18008/movjpg/" + it.name + ".jpg";
|
||||||
VOD.vod_name =it.name;
|
let names = it.name +" ("+ (index+1) +")";
|
||||||
VOD.vod_pic = "http://114.100.48.52:18008/movjpg/" + it.name + ".jpg";
|
let playEsp = it.source.eps;
|
||||||
let names = it.name +" ("+ (index+1) +")";
|
playEsp.forEach(function(it) {
|
||||||
let playEsp = it.source.eps;
|
|
||||||
playEsp.forEach(function(it) {
|
|
||||||
let source = names;
|
let source = names;
|
||||||
if (!playMap.hasOwnProperty(source)) {
|
if (!playMap.hasOwnProperty(source)) {
|
||||||
playMap[source] = []
|
playMap[source] = []
|
||||||
}
|
}
|
||||||
playMap[source].append(it['name'].strip() + '$' + it['url']);
|
playMap[source].append(it['name'].strip() + '$' + it['url']);
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
let playFrom = [];
|
let playFrom = [];
|
||||||
let playList = [];
|
let playList = [];
|
||||||
Object.keys(playMap)
|
Object.keys(playMap).forEach(function(key) {
|
||||||
.forEach(function(key) {
|
playFrom.append(key);
|
||||||
playFrom.append(key);
|
playList.append(playMap[key].join('#'))
|
||||||
playList.append(playMap[key].join('#'))
|
});
|
||||||
});
|
let vod_play_from = playFrom.join('$$$');
|
||||||
let vod_play_from = playFrom.join('$$$');
|
let vod_play_url = playList.join('$$$');
|
||||||
let vod_play_url = playList.join('$$$');
|
VOD['vod_play_from'] = vod_play_from;
|
||||||
VOD['vod_play_from'] = vod_play_from;
|
VOD['vod_play_url'] = vod_play_url
|
||||||
VOD['vod_play_url'] = vod_play_url
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log('获取二级详情页发生错误:' + e.message)
|
log('获取二级详情页发生错误:' + e.message)
|
||||||
}
|
}`,
|
||||||
`,
|
|
||||||
搜索:`js:
|
搜索:`js:
|
||||||
let d = [];
|
let d = [];
|
||||||
let html = request(input);
|
let html = request(input);
|
||||||
let json = JSON.parse(html);
|
let json = JSON.parse(html);
|
||||||
json.data.docinfos.forEach(function(data) {
|
json.data.docinfos.forEach(function(data) {
|
||||||
let channelName = data.albumDocInfo.channel.split(',')[0];
|
let channelName = data.albumDocInfo.channel.split(',')[0];
|
||||||
if ((data.is_exactly_same === true)&&(channelName.includes('电影') || channelName.includes('电视剧') || channelName.includes('综艺') || channelName.includes('动漫') || channelName.includes('少儿'))) {
|
if (channelName.includes('电影') || channelName.includes('电视剧') || channelName.includes('综艺') || channelName.includes('动漫') || channelName.includes('少儿')) {
|
||||||
d.push({
|
d.push({
|
||||||
url: "https://www.tycng.com/caiji.php?jx=" + data.albumDocInfo.albumTitle,
|
url: "https://www.tycng.com/caiji.php?jx=" + data.albumDocInfo.albumTitle,
|
||||||
title: data.albumDocInfo.albumTitle,
|
title: data.albumDocInfo.albumTitle,
|
||||||
|
1
jsm.json
1
jsm.json
@ -366,6 +366,7 @@
|
|||||||
{"name":"海外看","hosts":["haiwaikan"],"regex":["8.16","8.1748","10.0099","10.3333","10.85","12.33","16.0599"]},
|
{"name":"海外看","hosts":["haiwaikan"],"regex":["8.16","8.1748","10.0099","10.3333","10.85","12.33","16.0599"]},
|
||||||
{"name":"索尼","hosts":["suonizy"],"regex":["15.1666","15.2666"]},
|
{"name":"索尼","hosts":["suonizy"],"regex":["15.1666","15.2666"]},
|
||||||
{"name":"暴風","hosts":["bfzy"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:3,[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
{"name":"暴風","hosts":["bfzy"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:3,[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
||||||
|
{"name":"卧龙影视资源","hosts":["cdn.wl*"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:.*?,[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
||||||
{"name":"ikun资源","hosts":["bfikuncdn"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXT-X-KEY:METHOD=NONE\\r*\\n*#EXTINF:.*?,[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
{"name":"ikun资源","hosts":["bfikuncdn"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXT-X-KEY:METHOD=NONE\\r*\\n*#EXTINF:.*?,[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
||||||
{"name":"星星","hosts":["aws.ulivetv.net"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:8,[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
{"name":"星星","hosts":["aws.ulivetv.net"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:8,[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
||||||
{"name":"量子广告","hosts":["vip.lz","hd.lz",".cdnlz",".cdnlz*"],"regex":["#EXTINF.*?\\s+[a-z0-9]{18}\\.ts","[a-z0-9]{18}\\.ts\\s+","#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF.*?\\s+[a-z0-9]{18}\\.ts[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
{"name":"量子广告","hosts":["vip.lz","hd.lz",".cdnlz",".cdnlz*"],"regex":["#EXTINF.*?\\s+[a-z0-9]{18}\\.ts","[a-z0-9]{18}\\.ts\\s+","#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF.*?\\s+[a-z0-9]{18}\\.ts[\\s\\S]*?#EXT-X-DISCONTINUITY"]},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user