万能.js 815 B

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