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