|
|
@ -138,10 +138,12 @@ function getYiData(jkdata, batchTest) { |
|
|
|
if(home['filters']){ |
|
|
|
if(home['filters']){ |
|
|
|
筛选 = home['filters']; |
|
|
|
筛选 = home['filters']; |
|
|
|
} |
|
|
|
} |
|
|
|
let homeVod = home['list'] || []; |
|
|
|
if(!batchTest){ |
|
|
|
homeVod.forEach(it=>{ |
|
|
|
let homeVod = home['list'] || []; |
|
|
|
推荐.push({ "vod_url": it.vod_id.toString(), "vod_name": it.vod_name, "vod_desc": it.vod_remarks, "vod_pic": it.vod_pic }); |
|
|
|
homeVod.forEach(it=>{ |
|
|
|
}) |
|
|
|
推荐.push({ "vod_url": it.vod_id.toString(), "vod_name": it.vod_name, "vod_desc": it.vod_remarks, "vod_pic": it.vod_pic }); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
}else if (api_type == "hipy_t3") { |
|
|
|
}else if (api_type == "hipy_t3") { |
|
|
|
let home = JSON.parse(drpy.home()); |
|
|
|
let home = JSON.parse(drpy.home()); |
|
|
|
let typelist = home['class'] || []; |
|
|
|
let typelist = home['class'] || []; |
|
|
@ -151,20 +153,22 @@ function getYiData(jkdata, batchTest) { |
|
|
|
if(home['filters']){ |
|
|
|
if(home['filters']){ |
|
|
|
筛选 = home['filters']; |
|
|
|
筛选 = home['filters']; |
|
|
|
} |
|
|
|
} |
|
|
|
let homeVod = JSON.parse(drpy.homeVod()).list || []; |
|
|
|
if(!batchTest){ |
|
|
|
homeVod.forEach(it=>{ |
|
|
|
let homeVod = JSON.parse(drpy.homeVod()).list || []; |
|
|
|
let playUrl = it.vod_id.toString().split("@@")[0].trim(); |
|
|
|
homeVod.forEach(it=>{ |
|
|
|
if(detailurl && noerji && !playUrl.startsWith("http")){ |
|
|
|
let playUrl = it.vod_id.toString().split("@@")[0].trim(); |
|
|
|
let fyclass = ""; |
|
|
|
if(detailurl && noerji && !playUrl.startsWith("http")){ |
|
|
|
let fyid = playUrl; |
|
|
|
let fyclass = ""; |
|
|
|
if(playUrl.includes("$")){ |
|
|
|
let fyid = playUrl; |
|
|
|
fyclass = playUrl.split("$")[0]; |
|
|
|
if(playUrl.includes("$")){ |
|
|
|
fyid = playUrl.split("$")[1]; |
|
|
|
fyclass = playUrl.split("$")[0]; |
|
|
|
|
|
|
|
fyid = playUrl.split("$")[1]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
playUrl = detailurl.replace(/fyclass/g, fyclass).replace(/fyid/g, fyid); |
|
|
|
} |
|
|
|
} |
|
|
|
playUrl = detailurl.replace(/fyclass/g, fyclass).replace(/fyid/g, fyid); |
|
|
|
推荐.push({ "vod_url": it.vod_id.toString(), "vod_name": it.vod_name, "vod_desc": it.vod_remarks, "vod_pic": it.vod_pic, "vod_play":noerji?playUrl:"" }); |
|
|
|
} |
|
|
|
}) |
|
|
|
推荐.push({ "vod_url": it.vod_id.toString(), "vod_name": it.vod_name, "vod_desc": it.vod_remarks, "vod_pic": it.vod_pic, "vod_play":noerji?playUrl:"" }); |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
} else if (api_type == "XYQ") { |
|
|
|
} else if (api_type == "XYQ") { |
|
|
|
if (extdata['是否开启获取首页数据'] && extdata['首页列表数组规则'] && extdata['首页片单列表数组规则']) { |
|
|
|
if (extdata['是否开启获取首页数据'] && extdata['首页列表数组规则'] && extdata['首页片单列表数组规则']) { |
|
|
|
let gethtml = getHtml(classurl, headers); |
|
|
|
let gethtml = getHtml(classurl, headers); |
|
|
@ -353,13 +357,15 @@ function getYiData(jkdata, batchTest) { |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
try{ |
|
|
|
if(!batchTest){ |
|
|
|
let gettjhtml = getHtml(api_url+'?ac=videolist&pg=1', headers); |
|
|
|
try{ |
|
|
|
let tjlist = JSON.parse(gettjhtml).list; |
|
|
|
let gettjhtml = getHtml(api_url+'?ac=videolist&pg=1', headers); |
|
|
|
tjlist.forEach(v=>{ |
|
|
|
let tjlist = JSON.parse(gettjhtml).list; |
|
|
|
推荐.push({ "vod_url": detailurl + v.vod_id, "vod_name": v.vod_name, "vod_desc": v.vod_remarks, "vod_pic": v.vod_pic }); |
|
|
|
tjlist.forEach(v=>{ |
|
|
|
}) |
|
|
|
推荐.push({ "vod_url": detailurl + v.vod_id, "vod_name": v.vod_name, "vod_desc": v.vod_remarks, "vod_pic": v.vod_pic }); |
|
|
|
}catch(e){} |
|
|
|
}) |
|
|
|
|
|
|
|
}catch(e){} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|