From 8eec88380b679d89e910b65278ec29d0e66c1688 Mon Sep 17 00:00:00 2001 From: qist <87984115@qq.com> Date: Thu, 1 Aug 2024 09:52:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E5=B9=BF=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dianshi.json | 1 + js/caiji.js | 97 +++++++++++++++++++++++++--------------------------- jsm.json | 1 + 3 files changed, 48 insertions(+), 51 deletions(-) diff --git a/dianshi.json b/dianshi.json index a4e0fb48..807a6d25 100644 --- a/dianshi.json +++ b/dianshi.json @@ -365,6 +365,7 @@ {"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":["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":"星星","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"]}, diff --git a/js/caiji.js b/js/caiji.js index 842dfb5b..cb492a75 100644 --- a/js/caiji.js +++ b/js/caiji.js @@ -8,7 +8,6 @@ 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, @@ -23,66 +22,62 @@ var rule = { 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; + 二级:`js: + let d = []; + try { + let html = request(input, { + headers: getHeaders(url) + }); + let json = JSON.parse(html); + VOD = { + vod_name: "", + type_name: "", + vod_actor: "", + vod_year: "", + vod_content: "", + vod_remarks: "", + vod_pic: "" + }; + let playData = json.data; + let playMap = {}; + playData.forEach(function(it, index) { + VOD.vod_name =it.name; + VOD.type_name = it.class ? it.class+"     线路:"+json.portname : "未知     线路:"+json.portname; + VOD.vod_actor = it.actor; + VOD.vod_content = it.content ? it.content : "特别提醒:ㅤ友情提示您请勿相信影片中的广告,以免上当受骗"; + VOD.vod_year = it.year; + VOD.vod_pic = it.pic ? it.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 + } + 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 ((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({ url: "https://www.tycng.com/caiji.php?jx=" + data.albumDocInfo.albumTitle, title: data.albumDocInfo.albumTitle, diff --git a/jsm.json b/jsm.json index 956998ce..58444b4e 100644 --- a/jsm.json +++ b/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":["suonizy"],"regex":["15.1666","15.2666"]}, {"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":"星星","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"]},