-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path小懒听书.js
71 lines (71 loc) · 2.09 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
var rule = {
类型: '听书',
title: '小懒听书',
host: 'https://m.lrts.me',
url: '/ajax/getResourceList?dsize=50&entityId=fyclass&entityType=1&pageNum=fypage&showFilters=1',
searchUrl: '/ajax/searchBook?keyWord=**&pageSize=15&pageNum=fypage',
searchable: 2,
quickSearch: 0,
filterable:1,
timeout: 5000,
class_name: '奇幻玄幻&都市传说&穿越架空&武侠仙侠&青春校园&历史幻想&科幻空间&网游竞技&热血军事&官场商战&次元专区',
class_url: '11&8&3109&14&3106&12&3021&9042&9041&44&9287',
play_parse: true,
lazy: $js.toString(()=>{
let html = request(input);
let url = JSON.parse(html).list[0].path;
input = {url: url,parse: 0}
}),
double: true,
一级: $js.toString(()=>{
let d = [];
let html = request(input);
let data = JSON.parse(html).books;
data.forEach(it => {
let id = 'https://m.lrts.me/ajax/getBookMenu?bookId='+it.baseEntityId;
d.push({
url:id,
title:it.name,
img:it.cover,
desc:it.desc,
})
})
setResult(d);
}),
二级: $js.toString(()=>{
let urls = [];
let pg = 1;
while(pg){
let html = request(input+'&pageNum='+pg+'&pageSize=40&sortType=0');
let bookId = JSON.parse(html).bookId
try{
let data = JSON.parse(html).list;
data.forEach(it => {
urls.push(it.name+'$'+`https://m.lrts.me/ajax/getPlayPath?entityId=${bookId}&entityType=3&opType=1§ions=[${it.section}]&id=${it.id}`);
})
pg++
}catch(e){
break
}
}
VOD = {
vod_play_from: '球球啦',
vod_play_url: urls.join('#')
};
}),
搜索: $js.toString(()=>{
let d = [];
let html = request(input);
let data = JSON.parse(html).books;
data.forEach(it => {
let id = 'https://m.lrts.me/ajax/getBookMenu?bookId='+it.baseEntityId;
d.push({
url:id,
title:it.name,
img:it.cover,
desc:it.desc,
})
})
setResult(d);
})
}