-
Notifications
You must be signed in to change notification settings - Fork 296
Expand file tree
/
Copy path_base1[画].js
More file actions
44 lines (44 loc) · 1.19 KB
/
_base1[画].js
File metadata and controls
44 lines (44 loc) · 1.19 KB
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
var rule = {
title: '[画]',
类型: '漫画',
host: '',
url: '/fyclass/index_fypage.html',
class_parse: '#menu-main-menu&&li:lt(15);a&&Text;a&&href;.*/(.*?)/',
cate_exclude: '',
hikerListCol: "movie_3",
hikerClassListCol: "movie_3",
searchable: 2,
quickSearch: 0,
filterable: 0,
headers: {
'User-Agent': 'MOBILE_UA',
},
play_parse: true,
lazy: async function () {
let {input, pdfa, pdfh} = this;
// console.log('input:', input);
input = input.split('@@')[0];
let html = await request(input);
let arr = pdfa(html, '.single-content&&img');
let urls = [];
arr.forEach((it) => {
let src = pdfh(it, 'img&&data-src');
src += '@Referer=' + rule.host;
urls.push(src);
});
return {
parse: 0,
url: 'pics://' + urls.join('&&'),
js: '',
header: {
referer: rule.host,
'user-agent': MOBILE_UA
}
};
},
推荐: '*',
searchUrl: '/sou-**-fypage.html',
一级: '#content&&article;h2&&Text;img&&data-src;;a&&href',
二级: '*',
搜索: '*',
}