上传文件至 'js'
This commit is contained in:
parent
257cded07f
commit
929805f465
@ -39,8 +39,11 @@ var rule = {
|
|||||||
timeout:5000,
|
timeout:5000,
|
||||||
limit:8,
|
limit:8,
|
||||||
play_parse:true,
|
play_parse:true,
|
||||||
|
// play_json:[{re:'*', json:{jx:0, parse:1}}],
|
||||||
|
// play_json:0,
|
||||||
// lazy:"js:let rid=input.match(/\\/(\\d+)/)[1];log(rid);let purl=JSON.parse(request('https://mp.huya.com/cache.php?m=Live&do=profileRoom&roomid='+rid)).data.stream.baseSteamInfoList[0].sStreamName;log(purl);let rurl='http://txtest-xp2p.p2p.huya.com/src/'+purl+'.xs?ratio=4000';input={jx:0,url:rurl,parse:0}",
|
// lazy:"js:let rid=input.match(/\\/(\\d+)/)[1];log(rid);let purl=JSON.parse(request('https://mp.huya.com/cache.php?m=Live&do=profileRoom&roomid='+rid)).data.stream.baseSteamInfoList[0].sStreamName;log(purl);let rurl='http://txtest-xp2p.p2p.huya.com/src/'+purl+'.xs?ratio=4000';input={jx:0,url:rurl,parse:0}",
|
||||||
lazy:"js:let rid=input.match(/\\/(\\d+)/)[1];function getRealUrl(live_url){let[i,b]=live_url.split('?');let r=i.split('/').pop();let s=r.replace(/\.(flv|m3u8)/,'');let c_tmp=b.split('&').filter(n=>n);let n={};let c_tmp2=[];c_tmp.forEach(function(tmp,index){if(index<3){n[tmp.split('=')[0]]=tmp.split('=')[1]}else{c_tmp2.push(tmp)}});let tmp2=c_tmp2.join('&');n[tmp2.split('=')[0]]=tmp2.split('=')[1];let fm=decodeURIComponent(n.fm).split('&')[0];let u=base64Decode(fm);let p=u.split('_')[0];let f=new Date().getTime()+'0000';let ll=n.wsTime;let t='0';let h=[p,t,s,f,ll].join('_');let m=md5(h);return(i+'?wsSecret='+m+'&wsTime='+ll+'&u='+t+'&seqid='+f+'&'+c_tmp2.pop()).replace('hls','flv').replace('m3u8','flv')}let purl=JSON.parse(request('https://mp.huya.com/cache.php?m=Live&do=profileRoom&roomid='+rid)).data.stream.flv.multiLine[0].url;input={jx:0,url:getRealUrl(purl),parse:0,header:JSON.stringify({'user-agent':'Mozilla/5.0'})}",
|
lazy:"js:let rid=input.match(/\\/(\\d+)/)[1];let purl=JSON.parse(request('https://mp.huya.com/cache.php?m=Live&do=profileRoom&roomid='+rid)).data.stream.baseSteamInfoList[0].sStreamName;input={jx:0,url:'http://txtest-xp2p.p2p.huya.com/src/'+purl+'.xs?ratio=4000',parse:0}",
|
||||||
|
double:false,
|
||||||
推荐:'*',
|
推荐:'*',
|
||||||
一级:'json:data.datas;introduction;screenshot;nick;profileRoom',
|
一级:'json:data.datas;introduction;screenshot;nick;profileRoom',
|
||||||
二级:'*',
|
二级:'*',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user