万能.js 624 B

123456789101112
  1. let jxUrl = 'https://json.legendwhb.cn/llq/?url=';
  2. fetch_params.headers.Referer = jxUrl;
  3. try {
  4. let html = request(jxUrl+vipUrl);
  5. eval(html.match(/var config = {[\s\S]*?}/)[0] + "");
  6. let play = request("https://json.legendwhb.cn/llq/API.php", {headers: {"User-Agent": MOBILE_UA, "X-Requested-With": "XMLHttpRequest", "origin": "https://json.legendwhb.cn"}, body: "url=" + config.url + "&time=" + config.time + "&key=" + config.key, method: "POST"});
  7. realUrl = JSON.parse(play).url;
  8. log('解析到真实播放地址:'+realUrl);
  9. }catch (e) {
  10. log('解析发生错误:'+e.message);
  11. realUrl = vipUrl;
  12. }