-
Notifications
You must be signed in to change notification settings - Fork 2
/
盘他.js
46 lines (45 loc) · 1.5 KB
/
盘他.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
var rule = {
title: '盘他',
host: 'https://panso.pro',
searchUrl: '/search?exact=false&format=video&page=fypage&q=**&share_time=&type=&user=',
searchable: 2,
quickSearch: 0,
headers: {
'User-Agent': 'PC_UA',
},
timeout: 5000,
play_parse: true,
lazy: $js.toString(() => {
let url = input.startsWith('push://') ? input : 'push://' + input;
input = {parse: 0, url: url};
}),
一级: '',
二级: $js.toString(() => {
VOD = {};
VOD.vod_id = input;
let html = request(input);
let title = pdfh(html, 'h1&&Text');
let share_url = pdfh(html, '.semi-typography-link:eq(-1)&&a&&href');
let share_type = pdfh(html, '.semi-descriptions-value:eq(3)&&Text');
VOD.vod_name = title;
VOD.vod_pic = '';
VOD.content = share_url;
VOD.vod_remarks = pdfh(html, '.semi-descriptions-value&&Text');
VOD.vod_play_from = '点击下方播放';
VOD.vod_play_url = share_type + '$' + 'push://' + share_url;
}),
搜索: $js.toString(() => {
let html = request(input);
let data = pdfa(html, '.rm-search-content&&.semi-space-vertical');
let d = [];
data.forEach(it => {
d.push({
title: pdfh(it, 'a&&title'),
desc: pdfh(it, 'span:eq(3)&&Text') + '|' + pdfh(it, 'span:eq(-1)&&Text'),
img: "",
url: pd(it, 'a&&href', MY_URL)
});
});
setResult(d);
}),
}