diff --git a/js/version.txt b/js/version.txt index bbc36d7292e728b1b0db134c51c30eca2a3af667..39a19e1fc9449c368ddcfde3ab521a9d45e2f7cf 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.34beta19 \ No newline at end of file +3.9.34beta20 \ No newline at end of file diff --git "a/js/\350\231\216\347\211\231\347\233\264\346\222\255.js" "b/js/\350\231\216\347\211\231\347\233\264\346\222\255.js" index de376d6dc0986d82921f8a2618dc33a0e6d2228a..51c56b490a84750f58b4656c016062f496e1dea3 100644 --- "a/js/\350\231\216\347\211\231\347\233\264\346\222\255.js" +++ "b/js/\350\231\216\347\211\231\347\233\264\346\222\255.js" @@ -39,11 +39,8 @@ var rule = { timeout:5000, limit:8, 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];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, + 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'})}", 推荐:'*', 一级:'json:data.datas;introduction;screenshot;nick;profileRoom', 二级:'*',