Skip to content

Commit 70dc43b

Browse files
author
Taois
committed
feat:发布新版本,优化一些细节
1 parent 3dba0c7 commit 70dc43b

File tree

11 files changed

+42
-4
lines changed

11 files changed

+42
-4
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ nodejs作为服务端的drpy实现。全面升级异步写法
7070

7171
## 更新记录
7272

73+
### 20260131
74+
75+
更新至V1.3.21
76+
7377
### 20260127
7478

7579
更新至V1.3.20

controllers/config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,11 @@ async function generateSiteJSON(options, requestHost, sub, pwd) {
419419
filterable: 1, // 固定值
420420
quickSearch: 1, // 固定值
421421
};
422+
if (baseName.includes('[画]')) {
423+
ruleObject.类型 = '漫画'
424+
} else if (baseName.includes('[书]')) {
425+
ruleObject.类型 = '小说'
426+
}
422427
let ruleMeta = {...ruleObject};
423428
const filePath = path.join(pyDir, file);
424429
const header = await FileHeaderManager.readHeader(filePath);
@@ -516,6 +521,11 @@ async function generateSiteJSON(options, requestHost, sub, pwd) {
516521
filterable: 1,
517522
quickSearch: 1,
518523
};
524+
if (baseName.includes('[画]')) {
525+
ruleObject.类型 = '漫画'
526+
} else if (baseName.includes('[书]')) {
527+
ruleObject.类型 = '小说'
528+
}
519529
let ruleMeta = {...ruleObject};
520530
const filePath = path.join(phpDir, file);
521531

@@ -579,6 +589,11 @@ async function generateSiteJSON(options, requestHost, sub, pwd) {
579589
filterable: 1, // 固定值
580590
quickSearch: 1, // 固定值
581591
};
592+
if (baseName.includes('[画]')) {
593+
ruleObject.类型 = '漫画'
594+
} else if (baseName.includes('[书]')) {
595+
ruleObject.类型 = '小说'
596+
}
582597
let ruleMeta = {...ruleObject};
583598
const filePath = path.join(catDir, file);
584599
const header = await FileHeaderManager.readHeader(filePath);

docs/updateRecord.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# drpyS更新记录
22

3+
### 20260131
4+
5+
更新至V1.3.21
6+
7+
1. 更新一点文档和文件名称
8+
2. 修复番茄动漫ds源在皮卡丘壳子上无法使用问题(
9+
BUG羊的壳子tid为链接时处理逻辑一团乱,http链接被篡改成https就算了,链接含有{{page}}变量竟然被篡改成1了)
10+
3. 更新文档、生成配置类型,使php、py源也更兼容皮卡丘的漫画小说
11+
312
### 20260127
413

514
更新至V1.3.20

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "drpy-node",
3-
"version": "1.3.20",
3+
"version": "1.3.21",
44
"main": "index.js",
55
"type": "module",
66
"scripts": {

public/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ <h3 id="免费壳子推荐">免费壳子推荐</h3>
7171
<li><a href="https://github.com/ingriddaleusag-dotcom/PeekPiliRelease">皮卡丘</a></li>
7272
</ul>
7373
<h2 id="更新记录">更新记录</h2>
74+
<h3 id="20260131">20260131</h3>
75+
<p>更新至V1.3.21</p>
7476
<h3 id="20260127">20260127</h3>
7577
<p>更新至V1.3.20</p>
7678
<h3 id="20260125">20260125</h3>

spider/catvod/蓝莓聚合短剧[B].js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spider/js/番茄漫画[画].js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
})
1111
*/
1212

13+
1314
var rule = {
1415
类型: '漫画',
1516
title: '番茄漫画',
@@ -29,12 +30,13 @@ var rule = {
2930
limit: 10,
3031
class_parse: async function () {
3132
let {input} = this;
33+
// log('[class_parse] input:', input);
3234
let html = await request(input);
3335
let data = html.parseX.data;
3436
let d = data.filter(item => item.url.trim()).map((it) => {
3537
return {
3638
type_name: it.title,
37-
type_id: it.url,
39+
type_id: gzip(it.url),
3840
}
3941
});
4042
return {class: d}
@@ -74,11 +76,15 @@ var rule = {
7476
推荐: async function () {
7577
let {HOST} = this;
7678
let url = HOST + '/api/discover?tab=漫画&type=7&gender=2&genre_type=110&page=1';
79+
// log('[推荐]: url: ' + url);
7780
let html = await request(url);
7881
return this.parseList(html);
7982
},
8083
一级: async function (tid, pg, filter, extend) {
84+
// log('[一级]: tid:', tid);
85+
tid = ungzip(tid);
8186
input = jinja.render(tid, {page: pg});
87+
// log('[一级]: input: ' + input);
8288
let html = await request(input);
8389
return this.parseList(html);
8490
},

spider/php/PHP写源(道长).pdf

5.7 KB
Binary file not shown.

spider/php/crawler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# PHP 命令路径
2828
PHP_CMD = "php"
2929
# 桥接脚本路径
30-
BRIDGE_SCRIPT = os.path.join(SCRIPT_DIR, "crawler_bridge.php")
30+
BRIDGE_SCRIPT = os.path.join(SCRIPT_DIR, "_crawler_bridge.php")
3131

3232
# --- 数据库管理 (Database Manager) ---
3333
class DBManager:

0 commit comments

Comments
 (0)