Skip to content

Commit 886a816

Browse files
author
Taois
committed
feat: 新增一个源
1 parent 96cbde6 commit 886a816

File tree

3 files changed

+179
-22
lines changed

3 files changed

+179
-22
lines changed

spider/js/_base2[画].js

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
var rule = {
2+
title: '[画]',
3+
host: '',
4+
url: '/android_rest.action?typeId=fyclass&page=fypage&type=index&userId=0',
5+
detailUrl: '/android_rest.action?id=fyid&type=product&userId=userId',
6+
searchUrl: '/android_rest.action?type=search&userId=0&word=**',
7+
searchable: 2,
8+
quickSearch: 0,
9+
headers: {
10+
"Content-Type": "application/x-www-form-urlencoded",
11+
"User-Agent": "Dalvik/2.1.0 (Linux; U; Android 9;MIX 2S Build/PKQ1.180729.001)"
12+
},
13+
timeout: 5000,
14+
class_name: '全部&热血&玄幻&恋爱&纯爱&都市&冒险&古风&穿越&搞笑&奇幻&萝莉&御姐&后宫&修真&耽美&动作&少年&霸总&生活&武侠&大女主&科幻&剧情&悬疑&韩漫&韩国&更新&新增',
15+
class_url: '0&1&2&3&32&4&5&6&7&8&10&11&12&13&14&15&16&17&19&20&25&26&27&28&29&30&33&34&35',
16+
play_parse: true,
17+
lazy: async function (flag, id, flags) {
18+
let result = `${flag}?${id}`.replace('在线观看-', '');
19+
let _id = result.split("?");
20+
let videoSign = md5(`-${_id[0]}-${_id[1]}-TcbmGhl247Bc-Rd-android`);
21+
let url = rule.host + '/android_rest.action';
22+
let params = `chapterId=${_id[1]}&videoSign=${videoSign}&id=${_id[0]}&type=imagesList`;
23+
let html = await post(url, {body: params});
24+
let imgList = html.parseX.imagesList.map((img) => {
25+
return img.imageURL
26+
});
27+
return {parse: 0, url: 'pics://' + imgList.join('&&')};
28+
},
29+
limit: 6,
30+
推荐: '',
31+
double: true,
32+
一级: async function (tid, pg, filter, extend) {
33+
let [url, params] = this.input.split('?');
34+
let html = await post(url, {body: params});
35+
let items = html.parseX.itemsList;
36+
let d = [];
37+
items.forEach(function (item) {
38+
d.push({
39+
title: item.title,
40+
desc: item.subTitle,
41+
url: item.comicId,
42+
img: item.imageURL,
43+
content: item.updateMsg,
44+
})
45+
});
46+
return setResult(d)
47+
},
48+
二级: async function (ids) {
49+
let [url, params] = this.input.split('?');
50+
let html = await post(url, {body: params});
51+
let json = html.parseX;
52+
let vod = {
53+
"vod_name": json.title,
54+
"vod_id": json.comicId,
55+
"vod_remarks": json.updateMsg,
56+
"vod_pic": json.imageURL,
57+
"vod_content": json.desc,
58+
};
59+
let playform = '在线观看-' + json.comicId;
60+
let playurls = [];
61+
json.chapterList.forEach(function (chapter) {
62+
playurls.push(chapter.partName + '$' + chapter.partId);
63+
});
64+
vod.vod_play_from = playform;
65+
vod.vod_play_url = playurls.join('#');
66+
return vod;
67+
},
68+
搜索: async function (wd, quick, pg) {
69+
let [url, params] = this.input.split('?');
70+
let html = await post(url, {body: params});
71+
let items = html.parseX.searchList;
72+
let d = [];
73+
items.forEach(function (item) {
74+
d.push({
75+
title: item.title.replace(/\[.*/g, ""),
76+
desc: item.subTitle,
77+
url: item.comicId,
78+
img: item.imageURL,
79+
content: item.updateMsg,
80+
})
81+
});
82+
return setResult(d)
83+
},
84+
}

spider/js/漫画大全[画].js

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
/*
2+
@header({
3+
searchable: 2,
4+
filterable: 0,
5+
quickSearch: 0,
6+
title: '漫画大全',
7+
'类型': '漫画',
8+
lang: 'ds'
9+
})
10+
*/
11+
12+
var rule = {
13+
title: '漫画大全',
14+
host: 'http://android.007ting.com',
15+
url: '/android_rest.action?typeId=fyclass&page=fypage&type=index&userId=0',
16+
detailUrl: '/android_rest.action?id=fyid&type=product&userId=userId',
17+
searchUrl: '/android_rest.action?type=search&userId=0&word=**',
18+
searchable: 2,
19+
quickSearch: 0,
20+
headers: {
21+
"Content-Type": "application/x-www-form-urlencoded",
22+
"User-Agent": "Dalvik/2.1.0 (Linux; U; Android 9;MIX 2S Build/PKQ1.180729.001)"
23+
},
24+
timeout: 5000,
25+
class_name: '全部&热血&玄幻&恋爱&纯爱&都市&冒险&古风&穿越&搞笑&奇幻&萝莉&御姐&后宫&修真&耽美&动作&少年&霸总&生活&武侠&大女主&科幻&剧情&悬疑&韩漫&韩国&更新&新增',
26+
class_url: '0&1&2&3&32&4&5&6&7&8&10&11&12&13&14&15&16&17&19&20&25&26&27&28&29&30&33&34&35',
27+
play_parse: true,
28+
lazy: async function (flag, id, flags) {
29+
let result = `${flag}?${id}`.replace('在线观看-', '');
30+
let _id = result.split("?");
31+
let videoSign = md5(`-${_id[0]}-${_id[1]}-TcbmGhl247Bc-Rd-android`);
32+
let url = rule.host + '/android_rest.action';
33+
let params = `chapterId=${_id[1]}&videoSign=${videoSign}&id=${_id[0]}&type=imagesList`;
34+
let html = await post(url, {body: params});
35+
let imgList = html.parseX.imagesList.map((img) => {
36+
return img.imageURL
37+
});
38+
return {parse: 0, url: 'pics://' + imgList.join('&&')};
39+
},
40+
limit: 6,
41+
推荐: '',
42+
double: true,
43+
一级: async function (tid, pg, filter, extend) {
44+
let [url, params] = this.input.split('?');
45+
let html = await post(url, {body: params});
46+
let items = html.parseX.itemsList;
47+
let d = [];
48+
items.forEach(function (item) {
49+
d.push({
50+
title: item.title,
51+
desc: item.subTitle,
52+
url: item.comicId,
53+
img: item.imageURL,
54+
content: item.updateMsg,
55+
})
56+
});
57+
return setResult(d)
58+
},
59+
二级: async function (ids) {
60+
let [url, params] = this.input.split('?');
61+
let html = await post(url, {body: params});
62+
let json = html.parseX;
63+
let vod = {
64+
"vod_name": json.title,
65+
"vod_id": json.comicId,
66+
"vod_remarks": json.updateMsg,
67+
"vod_pic": json.imageURL,
68+
"vod_content": json.desc,
69+
};
70+
let playform = '在线观看-' + json.comicId;
71+
let playurls = [];
72+
json.chapterList.forEach(function (chapter) {
73+
playurls.push(chapter.partName + '$' + chapter.partId);
74+
});
75+
vod.vod_play_from = playform;
76+
vod.vod_play_url = playurls.join('#');
77+
return vod;
78+
},
79+
搜索: async function (wd, quick, pg) {
80+
let [url, params] = this.input.split('?');
81+
let html = await post(url, {body: params});
82+
let items = html.parseX.searchList;
83+
let d = [];
84+
items.forEach(function (item) {
85+
d.push({
86+
title: item.title.replace(/\[.*/g, ""),
87+
desc: item.subTitle,
88+
url: item.comicId,
89+
img: item.imageURL,
90+
content: item.updateMsg,
91+
})
92+
});
93+
return setResult(d)
94+
},
95+
}

spider/js_todo/漫画大全[画].js

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)