|
|
|
@ -46,21 +46,20 @@ let customparse = { |
|
|
|
|
let sitename = pdfh(it, "a&&li,1&&Text"); |
|
|
|
|
let vodname = pdfh(it, "a&&li,0&&Text"); |
|
|
|
|
let vodurl = pdfh(it, "a&&href"); |
|
|
|
|
log(vodurl); |
|
|
|
|
/* |
|
|
|
|
lists.push({name:vodname,pic:dogpic,url:vodurl,site:sitename}) |
|
|
|
|
*/ |
|
|
|
|
log(lists.length); |
|
|
|
|
//log(it)
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
log(lists); |
|
|
|
|
} catch (e) { |
|
|
|
|
log(e.message); |
|
|
|
|
var lists = []; |
|
|
|
|
} |
|
|
|
|
log(lists.length); |
|
|
|
|
let list = []; |
|
|
|
|
let task = function(obj) { |
|
|
|
|
try{ |
|
|
|
|
let trueurl = request(obj.url, {redirect: false, withHeaders: true}); |
|
|
|
|
let vodurl = JSON.parse(trueurl).headers.location[0]; |
|
|
|
|
list.push({ |
|
|
|
@ -69,6 +68,7 @@ let customparse = { |
|
|
|
|
voddesc: obj.site, |
|
|
|
|
vodurl: vodurl |
|
|
|
|
}) |
|
|
|
|
}catch(e){} |
|
|
|
|
return 1; |
|
|
|
|
} |
|
|
|
|
let doglist = lists.map((item)=>{ |
|
|
|
|