-
Notifications
You must be signed in to change notification settings - Fork 159
/
Copy pathjson1.js
32 lines (30 loc) · 901 Bytes
/
json1.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// http://localhost:5757/parse/json1?url=https://v.qq.com/x/cover/mzc00200vkqr54u/v4100qp69zl.html
const {requestJson} = $.require('./_lib.request.js')
const jx = {
type: 1,
ext: {
'flag': [
'qiyi',
'imgo',
'爱奇艺',
'奇艺',
'qq',
'qq 预告及花絮',
'腾讯',
'youku',
'优酷',
]
},
header: {
'User-Agent': MOBILE_UA,
},
// 添加url属性直接暴露api,不走系统。建议web解析才写这个属性,json解析隐藏起来
// url: 'https://cdnsrc.cdnapi.top/json/?url=',
};
async function lazy(input, params) {
log('input:', input);
let headers = {'User-Agent': PC_UA};
let timeout = 8000;
let obj = await requestJson('https://cdnsrc.cdnapi.top/json/?url=' + input, {headers, timeout});
return obj.url
}