From 63b04f73d7150ae992fcc09da183eb14d02e2e39 Mon Sep 17 00:00:00 2001 From: jevons0411 Date: Thu, 11 Aug 2022 14:54:37 +0800 Subject: [PATCH] Update SrcJyXunmi.js --- SrcJyXunmi.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/SrcJyXunmi.js b/SrcJyXunmi.js index 977c95c5..0ff65583 100644 --- a/SrcJyXunmi.js +++ b/SrcJyXunmi.js @@ -278,7 +278,23 @@ function xunmi(name,data) { } }else{ if(/cms/.test(obj.type)&&/^<\?xml/.test(gethtml)){ - + require(config.依赖.match(/https.*\//)[0] + 'SrcXPath.js'); + let videos = pdfa(gethtml,'list&&video'); + for(let i in videos){ + let id = SrcXPath(videos[i],`//video/id/text()`); + log(id); + } + return ""; + /* + let title = xpathArray(gethtml, jsondata.dtNode+jsondata.scVodNode+jsondata.scVodName); + let href = xpathArray(gethtml, jsondata.dtNode+jsondata.scVodNode+jsondata.scVodId); + let img = xpathArray(gethtml, jsondata.dtNode+jsondata.scVodNode+jsondata.scVodImg); + let mark = xpathArray(gethtml, jsondata.dtNode+jsondata.scVodNode+jsondata.scVodMark)||""; + var list = []; + for(var j in title){ + list.push({"id":href[j],"name":title[j],"pic":img[j],"desc":mark[j]}) + } + */ }else{ var html = JSON.parse(gethtml); }