干饭.js 906 B

1234567891011121314151617181920212223242526
  1. js:
  2. // cacheUrl = d.getParse(input);
  3. cacheUrl = getParse(input);
  4. // print(cacheUrl);
  5. if(cacheUrl){
  6. input=cacheUrl;
  7. }else{
  8. try {
  9. // let html = fetch([input, {headers:d.headers,timeout:d.timeout,encoding:d.encoding}]);
  10. // let html = fetch(input, {headers:d.headers,timeout:d.timeout,encoding:d.encoding});
  11. let html = fetch(input, fetch_params);
  12. // js = pdfh(html,'.stui-player__video script:eq(0)&&Html');
  13. // print(js);
  14. let ret = html.match(/var player_(.*?)=(.*?)</)[2];
  15. let url = JSON.parse(ret).url;
  16. if(url.length > 10){
  17. real_url = 'https://player.buyaotou.xyz/?url='+url;
  18. // log('免嗅地址:'+real_url);
  19. // d.saveParse(input,real_url);
  20. saveParse(input,real_url);
  21. input = real_url;
  22. }
  23. }catch (e) {
  24. print('网络请求发生错误:'+e.message);
  25. }
  26. }