酷云.js 1.1 KB

123456789101112131415161718192021222324
  1. var flag = [];
  2. function lazy() {
  3. let jxUrl = 'http://api.kunyu77.com/api.php/provide/parserUrl?url=';
  4. var t = Math.floor(new Date().getTime() / 1000).toString();
  5. let jxExt = "&retryNum=0&pcode=010110002&version=2.1&devid=f9c9ce5bb5827a266829383718e6131a&package=com.sevenVideo.app.android&sys=android&sysver=12&brand=Xiaomi&model=Mi_10_Pro&sj=" + t;
  6. let url = jxUrl + input + jxExt;
  7. let TK = "/api.php/provide/parserUrl" + "Xiaomif9c9ce5bb5827a266829383718e6131aMi_10_Procom.sevenVideo.app.android010110002" + 0 + t + "android12" + encodeURIComponent(input) + "2.1" + t + "XSpeUFjJ";
  8. fetch_params.headers.Referer = jxUrl;
  9. // fetch_params.headers['User-Agent'] = "Dalvik/2.1.0";
  10. fetch_params.headers['User-Agent'] = "okhttp/3.12.0";
  11. fetch_params.headers['TK'] = md5(TK);
  12. try {
  13. // realUrl = null;
  14. let html = request(url);
  15. log(html);
  16. realUrl = jsp.pjfh(html, '$..url');
  17. realUrl = 重定向(realUrl);
  18. log('解析到真实播放地址:' + realUrl);
  19. } catch (e) {
  20. log('解析发生错误:' + e.message);
  21. realUrl = input;
  22. }
  23. return realUrl
  24. }