蓝莓.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. js:
  2. var MY_HOME='http://lanmeiguojiang.com:5244/d/%E8%93%9D%E8%8E%93%E4%BA%91%E7%9B%98';
  3. // let headers = d.headers;
  4. // headers['Referer'] = input;
  5. // let fetch_params = {headers:headers,timeout:d.timeout,encoding:d.encoding};
  6. // print(fetch_params);
  7. let html = fetch(input,fetch_params);
  8. var player = JSON.parse(html.match(/r player_.*?=(.*?)</)[1]);
  9. var jsurl = player.url;
  10. var from = player.from;
  11. if (player.encrypt == '1') {
  12. var jsurl = unescape(jsurl);
  13. } else if (player.encrypt == '2') {
  14. var jsurl = unescape(base64Decode(jsurl));
  15. } else {
  16. jsurl
  17. }
  18. // print(from);
  19. if (/ddzy|duoduo/.test(from)) {
  20. let mx = true;
  21. if(mx) {
  22. let new_obj = JSON.parse(JSON.stringify(fetch_params));
  23. delete new_obj.headers['Referer'];
  24. let html = request(MY_HOME + '/pzwj.js',new_obj);
  25. // print(html);
  26. eval(html);
  27. // print('好了');
  28. var jx = MacPlayerConfig.player_list[from].parse;
  29. print('第1次多多解析:', jx);
  30. fetch_params.headers['Referer']='https://www.pipipao.com/';
  31. eval(fetch(jx + jsurl, fetch_params).match(/var config = {[\s\S]*?}/)[0]);
  32. jx = jx.replace('?url=', '');
  33. eval(fetch(jx + 'js/decode.js', fetch_params));
  34. jxk = fetch(jx + 'js/setting.js', fetch_params).split(',');
  35. jx += '555tZ4pvzHE3BpiO838.php'; //eval(jxk[32])
  36. print('第2次多多解析:', jx);
  37. config.tm = new Date().getTime();
  38. config.sign = 'F4penExTGogdt6U8'; //eval(jxk[36])
  39. input = getVideoInfo(JSON.parse(fetch(buildUrl(jx, config), fetch_params)).url);
  40. // input = input.replace(/,/g,'').slice(2);
  41. }
  42. } else if(from==='ziqie'){
  43. let jxurl = "https://lanmeiguojiang.com/dd/?url=" + jsurl;
  44. // print(jxurl);
  45. input = maoss(jxurl, jxurl, "A42EAC0C2B408472")
  46. }