Update lsq_open.js

This commit is contained in:
leospring 2024-06-20 17:59:40 +08:00 committed by GitHub
parent 333a59434b
commit f6be07f8e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -314,6 +314,7 @@ async function category(tid, pg, filter, extend) {
async function detail(id) {
let url = id;
input = id;
if (rule.detailUrl) url = rule.detailUrl;
if(url.startsWith('/')) url = HOST + url;
url = url.replace('fyid', id);
@ -322,6 +323,7 @@ async function detail(id) {
const vod = {
}
const parse = rule.二级 || rule.detailVod;
const jsCode = rule.二级JS || rule.detailVodJS;
if (parse) {
if ('object' === typeof(parse)) {
if (parse['director']) {
@ -373,9 +375,14 @@ async function detail(id) {
vod.vod_play_url = vod_play_url.join('$$$');
}
}
return JSON.stringify({
list: [vod],
});
} else if(jsCode) {
await evalCustomerJs(jsCode);
}
return JSON.stringify({
list: [vod],
list: videos,
});
}