|
|
@ -222,8 +222,10 @@ function xunmi(name,data) { |
|
|
|
ssstr.length = ssstr.length-1; |
|
|
|
ssstr.length = ssstr.length-1; |
|
|
|
} |
|
|
|
} |
|
|
|
ssurl = ssstr.join('?'); |
|
|
|
ssurl = ssstr.join('?'); |
|
|
|
|
|
|
|
var html = request(ssurl, { headers: { 'User-Agent': urlua }, timeout:xunmitimeout*1000, method: 'POST', body: postcs }); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
var html = request(ssurl, { headers: { 'User-Agent': urlua }, timeout:xunmitimeout*1000 }); |
|
|
|
} |
|
|
|
} |
|
|
|
var html = request(ssurl, { headers: { 'User-Agent': urlua }, timeout:xunmitimeout*1000, method: 'POST', body: postcs }); |
|
|
|
|
|
|
|
let title = xpathArray(html, jsondata.dtNode+jsondata.scVodNode+jsondata.scVodName); |
|
|
|
let title = xpathArray(html, jsondata.dtNode+jsondata.scVodNode+jsondata.scVodName); |
|
|
|
let href = xpathArray(html, jsondata.dtNode+jsondata.scVodNode+jsondata.scVodId); |
|
|
|
let href = xpathArray(html, jsondata.dtNode+jsondata.scVodNode+jsondata.scVodId); |
|
|
|
let img = xpathArray(html, jsondata.dtNode+jsondata.scVodNode+jsondata.scVodImg); |
|
|
|
let img = xpathArray(html, jsondata.dtNode+jsondata.scVodNode+jsondata.scVodImg); |
|
|
@ -240,26 +242,30 @@ function xunmi(name,data) { |
|
|
|
var html = JSON.parse(request(ssurl, { headers: { 'User-Agent': urlua }, timeout:xunmitimeout*1000 })); |
|
|
|
var html = JSON.parse(request(ssurl, { headers: { 'User-Agent': urlua }, timeout:xunmitimeout*1000 })); |
|
|
|
var list = html.list||[]; |
|
|
|
var list = html.list||[]; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
/* |
|
|
|
|
|
|
|
var sstype = ssurl.indexOf(';post')>-1?"post":"get"; |
|
|
|
var sstype = ssurl.indexOf(';post')>-1?"post":"get"; |
|
|
|
if(sstype == "post"){ |
|
|
|
if(sstype == "post"){ |
|
|
|
|
|
|
|
/* |
|
|
|
let ssstr = ssurl.replace(';post','').split('?'); |
|
|
|
let ssstr = ssurl.replace(';post','').split('?'); |
|
|
|
var postcs = ssstr[ssstr.length-1]; |
|
|
|
var postcs = ssstr[ssstr.length-1]; |
|
|
|
if(ssstr.length>2){ |
|
|
|
if(ssstr.length>2){ |
|
|
|
ssstr.length = ssstr.length-1; |
|
|
|
ssstr.length = ssstr.length-1; |
|
|
|
} |
|
|
|
} |
|
|
|
ssurl = ssstr.join('?'); |
|
|
|
var html = request(ssurl, { headers: { 'User-Agent': urlua }, timeout:xunmitimeout*1000, method: 'POST', body: postcs }); |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
var html = request(ssurl, { headers: { 'User-Agent': urlua }, timeout:xunmitimeout*1000 }); |
|
|
|
} |
|
|
|
} |
|
|
|
var html = request(ssurl, { headers: { 'User-Agent': urlua }, timeout:xunmitimeout*1000, method: 'POST', body: postcs }); |
|
|
|
let sslist = html.split(jsondata.jiequshuzuqian.replace(/\\/g,"")); |
|
|
|
let title = xpathArray(html, jsondata.dtNode+jsondata.scVodNode+jsondata.scVodName); |
|
|
|
sslist.splice(0,1); |
|
|
|
let href = xpathArray(html, jsondata.dtNode+jsondata.scVodNode+jsondata.scVodId); |
|
|
|
|
|
|
|
let img = xpathArray(html, jsondata.dtNode+jsondata.scVodNode+jsondata.scVodImg); |
|
|
|
|
|
|
|
let mark = xpathArray(html, jsondata.dtNode+jsondata.scVodNode+jsondata.scVodMark)||""; |
|
|
|
|
|
|
|
var list = []; |
|
|
|
var list = []; |
|
|
|
for(var j in title){ |
|
|
|
for (let i = 0; i < sslist.length; i++) { |
|
|
|
list.push({"id":href[j],"name":title[j],"pic":img[j],"desc":mark[j]}) |
|
|
|
sslist[i] = sslist[i].split(jsondata.jiequshuzuhou.replace(/\\/g,""))[0]; |
|
|
|
|
|
|
|
let title = sslist[i].split(jsondata.biaotiqian.replace(/\\/g,""))[1].split(jsondata.biaotihou.replace(/\\/g,""))[0]; |
|
|
|
|
|
|
|
let href = sslist[i].split(jsondata.lianjieqian.replace(/\\/g,""))[1].split(jsondata.lianjiehou.replace(/\\/g,""))[0]; |
|
|
|
|
|
|
|
let img = sslist[i].split(jsondata.tupianqian.replace(/\\/g,""))[1].split(jsondata.tupianhou.replace(/\\/g,""))[0]; |
|
|
|
|
|
|
|
let mark = ""; |
|
|
|
|
|
|
|
list.push({"id":href,"name":title,"pic":img,"desc":mark}) |
|
|
|
} |
|
|
|
} |
|
|
|
*/ |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
var ssvodurl = `jsondata.url+jsondata.sousuohouzhui+list.id+'.html'`; |
|
|
|
var ssvodurl = `jsondata.url+jsondata.sousuohouzhui+list.id+'.html'`; |
|
|
|
} |
|
|
|
} |
|
|
@ -573,14 +579,14 @@ function xunmierji(type,ua) { |
|
|
|
getsm = "获取剧情简介juqingqian"; |
|
|
|
getsm = "获取剧情简介juqingqian"; |
|
|
|
var desc = pdfh(html.split(jsondata.juqingqian.replace(/\\/g,""))[1].split(jsondata.juqinghou.replace(/\\/g,""))[0],"Text") || '...'; |
|
|
|
var desc = pdfh(html.split(jsondata.juqingqian.replace(/\\/g,""))[1].split(jsondata.juqinghou.replace(/\\/g,""))[0],"Text") || '...'; |
|
|
|
getsm = "获取播放地址数组bfjiequshuzuqian"; |
|
|
|
getsm = "获取播放地址数组bfjiequshuzuqian"; |
|
|
|
let bfs = html.split(jsondata.bfjiequshuzuqian.replace(/\\/g,"")); |
|
|
|
let bflist = html.split(jsondata.bfjiequshuzuqian.replace(/\\/g,"")); |
|
|
|
bfs.splice(0,1); |
|
|
|
bflist.splice(0,1); |
|
|
|
var arts = []; |
|
|
|
var arts = []; |
|
|
|
var conts = []; |
|
|
|
var conts = []; |
|
|
|
for (let i = 0; i < bfs.length; i++) { |
|
|
|
for (let i = 0; i < bflist.length; i++) { |
|
|
|
arts[i] = '播放源'+(i+1); |
|
|
|
arts[i] = '播放源'+(i+1); |
|
|
|
bfs[i] = bfs[i].split(jsondata.bfjiequshuzuhou.replace(/\\/g,""))[0]; |
|
|
|
bflist[i] = bflist[i].split(jsondata.bfjiequshuzuhou.replace(/\\/g,""))[0]; |
|
|
|
let bfline = pdfa(bfs[i],"body&&a"); |
|
|
|
let bfline = pdfa(bflist[i],"body&&a"); |
|
|
|
let cont = []; |
|
|
|
let cont = []; |
|
|
|
for (let j = 0; j < bfline.length; j++) { |
|
|
|
for (let j = 0; j < bfline.length; j++) { |
|
|
|
let contname = pdfh(bfline[j],"a&&Text"); |
|
|
|
let contname = pdfh(bfline[j],"a&&Text"); |
|
|
|