|
|
@ -251,16 +251,17 @@ function jiekouyiji() { |
|
|
|
let name = String(xpath(videos[i],`//video/name/text()`)).match(/\[.*\[(.*?)\]\.*]/)[1]; |
|
|
|
let name = String(xpath(videos[i],`//video/name/text()`)).match(/\[.*\[(.*?)\]\.*]/)[1]; |
|
|
|
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()`)).match(/\[.*\[(.*?)\]\.*]/)[1]; |
|
|
|
let note = String(xpath(videos[i],`//video/note/text()`)).match(/\[.*\[(.*?)\]\.*]/)[1]; |
|
|
|
let plays = xpartArray(videos[i],`//video/dl/dd/text()`); |
|
|
|
let arr = {"vod_id":id,"vod_name":name,"vod_remarks":note,"vod_pic":pic}; |
|
|
|
|
|
|
|
/*let plays = xpartArray(videos[i],`//video/dl/dd/text()`);
|
|
|
|
if(plays.length==1){ |
|
|
|
if(plays.length==1){ |
|
|
|
try{ |
|
|
|
try{ |
|
|
|
var play = plays[0].match(/\[.*\[(.*?)\]\.*]/)[1]; |
|
|
|
var play = plays[0].match(/\[.*\[(.*?)\]\.*]/)[1]; |
|
|
|
}catch(e){ } |
|
|
|
}catch(e){ } |
|
|
|
} |
|
|
|
} |
|
|
|
let arr = {"vod_id":id,"vod_name":name,"vod_remarks":note,"vod_pic":pic}; |
|
|
|
|
|
|
|
if(play&&play.indexOf('$')==-1&&play.indexOf('m3u8')>-1){ |
|
|
|
if(play&&play.indexOf('$')==-1&&play.indexOf('m3u8')>-1){ |
|
|
|
arr['play'] = play; |
|
|
|
arr['play'] = play; |
|
|
|
} |
|
|
|
}*/ |
|
|
|
xmllist.push(arr) |
|
|
|
xmllist.push(arr) |
|
|
|
} |
|
|
|
} |
|
|
|
var html = {"list":xmllist}; |
|
|
|
var html = {"list":xmllist}; |
|
|
@ -298,8 +299,8 @@ function jiekouyiji() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
title: vodname, |
|
|
|
title: vodname, |
|
|
|
desc: voddesc, |
|
|
|
desc: voddesc, |
|
|
|
pic_url: vodpic, |
|
|
|
pic_url: vodpic,//list.play?list.play:
|
|
|
|
url: list.play?list.play:$("hiker://empty##" + vodurl + "#immersiveTheme#").rule((type,ua) => { |
|
|
|
url: $("hiker://empty##" + vodurl + "#immersiveTheme#").rule((type,ua) => { |
|
|
|
require(config.依赖.match(/https.*\//)[0] + 'SrcJyXunmi.js'); |
|
|
|
require(config.依赖.match(/https.*\//)[0] + 'SrcJyXunmi.js'); |
|
|
|
xunmierji(type,ua) |
|
|
|
xunmierji(type,ua) |
|
|
|
},api_type, api_ua), |
|
|
|
},api_type, api_ua), |
|
|
|