Skip to content

Commit 705b1f5

Browse files
committed
fix: 番茄小说
更新版本
1 parent 886ecc4 commit 705b1f5

File tree

7 files changed

+152
-4
lines changed

7 files changed

+152
-4
lines changed

Diff for: README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# drpyS(drpy-node)
22

33
nodejs作为服务端的drpy实现。全面升级异步写法
4-
~~积极开发中,每日一更~~,当前进度 `48%`
4+
~~积极开发中,每日一更~~,当前进度 `49%`
55
找工作中,随缘更新
66

77
* [本地配置接口-动态本地](/config?pwd=)
@@ -19,6 +19,10 @@ nodejs作为服务端的drpy实现。全面升级异步写法
1919

2020
## 更新记录
2121

22+
### 20250310
23+
24+
更新至V1.1.23
25+
2226
### 20250227
2327

2428
更新至V1.1.22

Diff for: docs/updateRecord.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# drpyS更新记录
22

3+
### 20250310
4+
5+
更新至V1.1.23
6+
7+
1. 修复番茄小说
8+
2. 新增2个源
9+
310
### 20250227
411

512
更新至V1.1.22

Diff for: js/全民追剧.js

+107
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: js/番茄小说[书].js

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ var rule = {
157157
content_url = `https://fanqienovel.com/reader/${input}?enter_from=reader`;
158158
log(content_url);
159159
let html = (await req(content_url, {headers: {Cookie: getFqCookie()}})).content;
160-
html = html.match(/window.__INITIAL_STATE__=(.+?});/)[1];
160+
html = html.match(/window.__INITIAL_STATE__=(.+?});/)[1].replaceAll(':undefined,', ':"undefined",');
161161
let json = JSON.parse(html).reader.chapterData;
162162
title = json.title;
163163
content = decodeText(json.content, 2);

Diff for: js_dr2/红果短剧.js

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
var rule = {
2+
title: '红果短剧',
3+
host: 'https://www.hongguodj.cc/',
4+
url: '/show/fyclass--------fypage---.html',
5+
searchUrl: '/search/**----------fypage---.html',
6+
class_parse: '.nav li;a&&Text;a&&href;.*/(.*?).html',
7+
searchable: 2,
8+
quickSearch: 0,
9+
filterable: 0,
10+
headers: {
11+
'User-Agent': 'MOBILE_UA',
12+
},
13+
play_parse: true,
14+
lazy: "js:\n let html = request(input);\n let hconf = html.match(/r player_.*?=(.*?)</)[1];\n let json = JSON5.parse(hconf);\n let url = json.url;\n if (json.encrypt == '1') {\n url = unescape(url);\n } else if (json.encrypt == '2') {\n url = unescape(base64Decode(url));\n }\n if (/\\.(m3u8|mp4|m4a|mp3)/.test(url)) {\n input = {\n parse: 0,\n jx: 0,\n url: url,\n };\n } else {\n input = url && url.startsWith('http') && tellIsJx(url) ? {parse:0,jx:1,url:url}:input;\n }",
15+
limit: 6,
16+
double: true,
17+
推荐: '.show&&ul;li;img&&alt;img&&data-src;.bg&&Text;a&&href',
18+
一级: '.list li;img&&alt;img&&data-src;.bg&&Text;a&&href',
19+
二级: {
20+
title: 'h2&&Text;.info p:eq(2)&&a&&Text',
21+
img: 'img&&src',
22+
desc: '.info p:eq(2)&&a&&Text;.info p:eq(3)&&a&&Text;.info p:eq(4)&&a&&Text;.info p:eq(0)&&a&&Text;.info p:eq(1)&&a&&Text',
23+
content: '#desc&&Text',
24+
tabs: '.play.my-2 .title&&a',
25+
lists: '.play-list:eq(#id)&&.rows li',
26+
},
27+
搜索: '.show.rows li;img&&alt;img&&data-src;.bg&&Text;a&&href',
28+
}

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "drpy-node",
3-
"version": "1.1.22",
3+
"version": "1.1.23",
44
"main": "index.js",
55
"type": "module",
66
"scripts": {

Diff for: public/index.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</head>
99
<body>
1010
<h1 id="drpysdrpy-node">drpyS(drpy-node)</h1>
11-
<p>nodejs作为服务端的drpy实现。全面升级异步写法<br><del>积极开发中,每日一更</del>,当前进度 <code>48%</code><br>找工作中,随缘更新</p>
11+
<p>nodejs作为服务端的drpy实现。全面升级异步写法<br><del>积极开发中,每日一更</del>,当前进度 <code>49%</code><br>找工作中,随缘更新</p>
1212
<ul>
1313
<li><a href="/config?pwd=">本地配置接口-动态本地</a></li>
1414
<li><a href="/config/1?pwd=">本地配置接口-动态外网/局域网</a></li>
@@ -24,6 +24,8 @@ <h1 id="drpysdrpy-node">drpyS(drpy-node)</h1>
2424
<li><a href="/cat/index.html">在线猫ds源主页</a></li>
2525
</ul>
2626
<h2 id="更新记录">更新记录</h2>
27+
<h3 id="20250310">20250310</h3>
28+
<p>更新至V1.1.23</p>
2729
<h3 id="20250227">20250227</h3>
2830
<p>更新至V1.1.22</p>
2931
<h3 id="20250226">20250226</h3>

0 commit comments

Comments
 (0)