|
|
@ -13,10 +13,11 @@ let contain = /\.mp4|\.avi|\.mkv|\.rmvb|\.flv|\.mov|\.ts|\.mp3|\.m4a|\.wma|\.fla |
|
|
|
|
|
|
|
|
|
|
|
function gethtml(api,path,password) { |
|
|
|
function gethtml(api,path,password) { |
|
|
|
try{ |
|
|
|
try{ |
|
|
|
|
|
|
|
log(api+"@"+path+"@"+password) |
|
|
|
path = path || ""; |
|
|
|
path = path || ""; |
|
|
|
password = password || ""; |
|
|
|
password = password || ""; |
|
|
|
let html = fetch(api, {body: {"path":path,"password":password},method:'POST',timeout:10000}); |
|
|
|
let html = fetch(api, {body: {"path":path,"password":password},method:'POST',timeout:10000}); |
|
|
|
log(html); |
|
|
|
log('html'+html); |
|
|
|
return html; |
|
|
|
return html; |
|
|
|
}catch(e){ |
|
|
|
}catch(e){ |
|
|
|
log(e.message); |
|
|
|
log(e.message); |
|
|
|