|
|
@ -274,9 +274,9 @@ function xunmi(name,data) { |
|
|
|
let videos = pdfa(gethtml,'list&&video'); |
|
|
|
let videos = pdfa(gethtml,'list&&video'); |
|
|
|
for(let i in videos){ |
|
|
|
for(let i in videos){ |
|
|
|
let id = String(xpath(videos[i],`//video/id/text()`)).trim(); |
|
|
|
let id = String(xpath(videos[i],`//video/id/text()`)).trim(); |
|
|
|
let name = String(xpath(videos[i],`//video/name/text()`)).replace(/<!\[CDATA\[|\]\]>/g,''); |
|
|
|
let name = String(xpath(videos[i],`//video/name/text()`)).trim().replace(/<!\[CDATA\[|\]\]>/g,''); |
|
|
|
let pic = String(xpath(videos[i],`//video/pic/text()`)).trim(); |
|
|
|
let pic = String(xpath(videos[i],`//video/pic/text()`)).trim(); |
|
|
|
let note = String(xpath(videos[i],`//video/note/text()`)).replace(/<!\[CDATA\[|\]\]>/g,''); |
|
|
|
let note = String(xpath(videos[i],`//video/note/text()`)).trim().replace(/<!\[CDATA\[|\]\]>/g,''); |
|
|
|
xmllist.push({"vod_id":id,"vod_name":name,"vod_remarks":note,"vod_pic":pic}) |
|
|
|
xmllist.push({"vod_id":id,"vod_name":name,"vod_remarks":note,"vod_pic":pic}) |
|
|
|
} |
|
|
|
} |
|
|
|
var html = {"list":xmllist}; |
|
|
|
var html = {"list":xmllist}; |
|
|
|